aboutsummaryrefslogtreecommitdiffstats
path: root/security/tomoyo/tomoyo.c
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2010-05-16 21:10:31 -0400
committerJames Morris <jmorris@namei.org>2010-08-02 01:33:37 -0400
commit2106ccd972dcd9fda7df9b181505fac1741b3508 (patch)
tree4361f9498c303cabc20abc85c1b5ee0afa677b0f /security/tomoyo/tomoyo.c
parenta1f9bb6a375a8dbf7797ffbd6739c46b338a77f7 (diff)
TOMOYO: Add mount restriction.
mount(2) has three string and one numeric parameters. Split mount restriction code from security/tomoyo/file.c . 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/tomoyo/tomoyo.c b/security/tomoyo/tomoyo.c
index bbe00429b3f5..5d64d409b112 100644
--- a/security/tomoyo/tomoyo.c
+++ b/security/tomoyo/tomoyo.c
@@ -226,7 +226,7 @@ static int tomoyo_path_chroot(struct path *path)
226static int tomoyo_sb_mount(char *dev_name, struct path *path, 226static int tomoyo_sb_mount(char *dev_name, struct path *path,
227 char *type, unsigned long flags, void *data) 227 char *type, unsigned long flags, void *data)
228{ 228{
229 return tomoyo_path_perm(TOMOYO_TYPE_MOUNT, path); 229 return tomoyo_mount_permission(dev_name, path, type, flags, data);
230} 230}
231 231
232static int tomoyo_sb_umount(struct vfsmount *mnt, int flags) 232static int tomoyo_sb_umount(struct vfsmount *mnt, int flags)