From: Chris Mason Date: Fri, 10 Oct 2008 14:23:22 +0000 (-0400) Subject: Btrfs: Don't call security_inode_mkdir during subvol creation X-Git-Tag: v2.6.29-rc1~27^2~9^2~55^2~56^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a3dddf3fc82a1f5942c0928abfd114e9a8c0d0c8;p=linux-2.6-omap-h63xx.git Btrfs: Don't call security_inode_mkdir during subvol creation Subvol creation already requires privs, and security_inode_mkdir isn't exported. For now we don't need it. Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 3d85f18bbba..1136ce2febc 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -254,11 +254,6 @@ static noinline int btrfs_mksubvol(struct path *parent, char *name, if (error) goto out_drop_write; - mode &= (S_IRWXUGO|S_ISVTX); - error = security_inode_mkdir(parent->dentry->d_inode, dentry, mode); - if (error) - goto out_drop_write; - /* * Actually perform the low-level subvolume creation after all * this VFS fuzz.