summaryrefslogtreecommitdiff
path: root/fs/btrfs/ioctl.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-10-10 10:23:22 -0400
committerChris Mason <chris.mason@oracle.com>2008-10-10 10:23:22 -0400
commita3dddf3fc82a1f5942c0928abfd114e9a8c0d0c8 (patch)
treea9330f97905176833ccf75f127f31822205929c7 /fs/btrfs/ioctl.c
parentcb8e70901d36f32017614f16d2cf7cc089544574 (diff)
downloadlwn-a3dddf3fc82a1f5942c0928abfd114e9a8c0d0c8.tar.gz
lwn-a3dddf3fc82a1f5942c0928abfd114e9a8c0d0c8.zip
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 <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r--fs/btrfs/ioctl.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 3d85f18bbba6..1136ce2febcc 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.