aboutsummaryrefslogtreecommitdiffstats
path: root/security/tomoyo/tomoyo.c
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2011-07-08 00:25:53 -0400
committerJames Morris <jmorris@namei.org>2011-07-10 21:05:34 -0400
commit97fb35e413f256ded07b88c73b3d932ec31ea84e (patch)
treed16cb1dcb6d16938aa01c071fdcd1cbbf85b5153 /security/tomoyo/tomoyo.c
parent5b636857fee642694e287e3a181b523b16098c93 (diff)
TOMOYO: Enable conditional ACL.
Enable conditional ACL by passing object's pointers. 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/tomoyo.c')
-rw-r--r--security/tomoyo/tomoyo.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/security/tomoyo/tomoyo.c b/security/tomoyo/tomoyo.c
index d6f68a0ec2d..a536cb182c0 100644
--- a/security/tomoyo/tomoyo.c
+++ b/security/tomoyo/tomoyo.c
@@ -98,18 +98,18 @@ static int tomoyo_bprm_check_security(struct linux_binprm *bprm)
98static int tomoyo_inode_getattr(struct vfsmount *mnt, struct dentry *dentry) 98static int tomoyo_inode_getattr(struct vfsmount *mnt, struct dentry *dentry)
99{ 99{
100 struct path path = { mnt, dentry }; 100 struct path path = { mnt, dentry };
101 return tomoyo_path_perm(TOMOYO_TYPE_GETATTR, &path); 101 return tomoyo_path_perm(TOMOYO_TYPE_GETATTR, &path, NULL);
102} 102}
103 103
104static int tomoyo_path_truncate(struct path *path) 104static int tomoyo_path_truncate(struct path *path)
105{ 105{
106 return tomoyo_path_perm(TOMOYO_TYPE_TRUNCATE, path); 106 return tomoyo_path_perm(TOMOYO_TYPE_TRUNCATE, path, NULL);
107} 107}
108 108
109static int tomoyo_path_unlink(struct path *parent, struct dentry *dentry) 109static int tomoyo_path_unlink(struct path *parent, struct dentry *dentry)
110{ 110{
111 struct path path = { parent->mnt, dentry }; 111 struct path path = { parent->mnt, dentry };
112 return tomoyo_path_perm(TOMOYO_TYPE_UNLINK, &path); 112 return tomoyo_path_perm(TOMOYO_TYPE_UNLINK, &path, NULL);
113} 113}
114 114
115static int tomoyo_path_mkdir(struct path *parent, struct dentry *dentry, 115static int tomoyo_path_mkdir(struct path *parent, struct dentry *dentry,
@@ -123,14 +123,14 @@ static int tomoyo_path_mkdir(struct path *parent, struct dentry *dentry,
123static int tomoyo_path_rmdir(struct path *parent, struct dentry *dentry) 123static int tomoyo_path_rmdir(struct path *parent, struct dentry *dentry)
124{ 124{
125 struct path path = { parent->mnt, dentry }; 125 struct path path = { parent->mnt, dentry };
126 return tomoyo_path_perm(TOMOYO_TYPE_RMDIR, &path); 126 return tomoyo_path_perm(TOMOYO_TYPE_RMDIR, &path, NULL);
127} 127}
128 128
129static int tomoyo_path_symlink(struct path *parent, struct dentry *dentry, 129static int tomoyo_path_symlink(struct path *parent, struct dentry *dentry,
130 const char *old_name) 130 const char *old_name)
131{ 131{
132 struct path path = { parent->mnt, dentry }; 132 struct path path = { parent->mnt, dentry };
133 return tomoyo_path_perm(TOMOYO_TYPE_SYMLINK, &path); 133 return tomoyo_path_perm(TOMOYO_TYPE_SYMLINK, &path, old_name);
134} 134}
135 135
136static int tomoyo_path_mknod(struct path *parent, struct dentry *dentry, 136static int tomoyo_path_mknod(struct path *parent, struct dentry *dentry,
@@ -225,7 +225,7 @@ static int tomoyo_path_chown(struct path *path, uid_t uid, gid_t gid)
225 225
226static int tomoyo_path_chroot(struct path *path) 226static int tomoyo_path_chroot(struct path *path)
227{ 227{
228 return tomoyo_path_perm(TOMOYO_TYPE_CHROOT, path); 228 return tomoyo_path_perm(TOMOYO_TYPE_CHROOT, path, NULL);
229} 229}
230 230
231static int tomoyo_sb_mount(char *dev_name, struct path *path, 231static int tomoyo_sb_mount(char *dev_name, struct path *path,
@@ -237,7 +237,7 @@ static int tomoyo_sb_mount(char *dev_name, struct path *path,
237static int tomoyo_sb_umount(struct vfsmount *mnt, int flags) 237static int tomoyo_sb_umount(struct vfsmount *mnt, int flags)
238{ 238{
239 struct path path = { mnt, mnt->mnt_root }; 239 struct path path = { mnt, mnt->mnt_root };
240 return tomoyo_path_perm(TOMOYO_TYPE_UMOUNT, &path); 240 return tomoyo_path_perm(TOMOYO_TYPE_UMOUNT, &path, NULL);
241} 241}
242 242
243static int tomoyo_sb_pivotroot(struct path *old_path, struct path *new_path) 243static int tomoyo_sb_pivotroot(struct path *old_path, struct path *new_path)