aboutsummaryrefslogtreecommitdiffstats
path: root/security/tomoyo/mount.c
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2010-06-16 03:21:36 -0400
committerJames Morris <jmorris@namei.org>2010-08-02 01:34:32 -0400
commitcf6e9a6468ec82a94cbc707b607452ec4454182c (patch)
tree6b289c8575f1915395d3c1348d473ab07fbe34a8 /security/tomoyo/mount.c
parent05336dee9f5a23c042e5938b42f996dd35e31ee6 (diff)
TOMOYO: Pass parameters via structure.
To make it possible to use callback function, pass parameters via "struct tomoyo_request_info". 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/mount.c')
-rw-r--r--security/tomoyo/mount.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/security/tomoyo/mount.c b/security/tomoyo/mount.c
index c170b41c3833..554de173152c 100644
--- a/security/tomoyo/mount.c
+++ b/security/tomoyo/mount.c
@@ -112,6 +112,12 @@ static int tomoyo_mount_acl2(struct tomoyo_request_info *r, char *dev_name,
112 } 112 }
113 rdev.name = requested_dev_name; 113 rdev.name = requested_dev_name;
114 tomoyo_fill_path_info(&rdev); 114 tomoyo_fill_path_info(&rdev);
115 r->param_type = TOMOYO_TYPE_MOUNT_ACL;
116 r->param.mount.need_dev = need_dev;
117 r->param.mount.dev = &rdev;
118 r->param.mount.dir = &rdir;
119 r->param.mount.type = &rtype;
120 r->param.mount.flags = flags;
115 list_for_each_entry_rcu(ptr, &r->domain->acl_info_list, list) { 121 list_for_each_entry_rcu(ptr, &r->domain->acl_info_list, list) {
116 struct tomoyo_mount_acl *acl; 122 struct tomoyo_mount_acl *acl;
117 if (ptr->is_deleted || ptr->type != TOMOYO_TYPE_MOUNT_ACL) 123 if (ptr->is_deleted || ptr->type != TOMOYO_TYPE_MOUNT_ACL)