]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Btrfs: Don't call security_inode_mkdir during subvol creation
authorChris Mason <chris.mason@oracle.com>
Fri, 10 Oct 2008 14:23:22 +0000 (10:23 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 10 Oct 2008 14:23:22 +0000 (10:23 -0400)
Subvol creation already requires privs, and security_inode_mkdir isn't
exported.  For now we don't need it.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ioctl.c

index 3d85f18bbba6f2890de0eac73944c8f278bac056..1136ce2febcc150e9895e7815cec20573a221653 100644 (file)
@@ -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.