Skip to content

Commit a3dddf3

Browse files
committed
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 <[email protected]>
1 parent cb8e709 commit a3dddf3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

fs/btrfs/ioctl.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,6 @@ static noinline int btrfs_mksubvol(struct path *parent, char *name,
254254
if (error)
255255
goto out_drop_write;
256256

257-
mode &= (S_IRWXUGO|S_ISVTX);
258-
error = security_inode_mkdir(parent->dentry->d_inode, dentry, mode);
259-
if (error)
260-
goto out_drop_write;
261-
262257
/*
263258
* Actually perform the low-level subvolume creation after all
264259
* this VFS fuzz.

0 commit comments

Comments
 (0)