diff options
author | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | 2010-02-15 19:46:15 -0500 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2010-02-16 01:26:36 -0500 |
commit | 97d6931ead3e89a764cdaa3ad0924037367f0d34 (patch) | |
tree | ad69e76208832699a97e897af73b6aa23a655609 /security/tomoyo/common.h | |
parent | 7ef612331fb219620cc1abfc2446bb027d388aa0 (diff) |
TOMOYO: Remove unneeded parameter.
tomoyo_path_perm() tomoyo_path2_perm() and tomoyo_check_rewrite_permission()
always receive tomoyo_domain(). We can move it from caller to callee.
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/tomoyo/common.h')
-rw-r--r-- | security/tomoyo/common.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/security/tomoyo/common.h b/security/tomoyo/common.h index f4d3050b9c0e..17ed365521b1 100644 --- a/security/tomoyo/common.h +++ b/security/tomoyo/common.h | |||
@@ -637,12 +637,10 @@ int tomoyo_check_exec_perm(struct tomoyo_domain_info *domain, | |||
637 | const struct tomoyo_path_info *filename); | 637 | const struct tomoyo_path_info *filename); |
638 | int tomoyo_check_open_permission(struct tomoyo_domain_info *domain, | 638 | int tomoyo_check_open_permission(struct tomoyo_domain_info *domain, |
639 | struct path *path, const int flag); | 639 | struct path *path, const int flag); |
640 | int tomoyo_path_perm(struct tomoyo_domain_info *domain, const u8 operation, | 640 | int tomoyo_path_perm(const u8 operation, struct path *path); |
641 | struct path *path); | 641 | int tomoyo_path2_perm(const u8 operation, struct path *path1, |
642 | int tomoyo_path2_perm(struct tomoyo_domain_info *domain, const u8 operation, | 642 | struct path *path2); |
643 | struct path *path1, struct path *path2); | 643 | int tomoyo_check_rewrite_permission(struct file *filp); |
644 | int tomoyo_check_rewrite_permission(struct tomoyo_domain_info *domain, | ||
645 | struct file *filp); | ||
646 | int tomoyo_find_next_domain(struct linux_binprm *bprm); | 644 | int tomoyo_find_next_domain(struct linux_binprm *bprm); |
647 | 645 | ||
648 | /* Run garbage collector. */ | 646 | /* Run garbage collector. */ |