mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-18 02:46:06 +00:00
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>
This commit is contained in:
parent
cb8e70901d
commit
a3dddf3fc8
@ -254,11 +254,6 @@ static noinline int btrfs_mksubvol(struct path *parent, char *name,
|
|||||||
if (error)
|
if (error)
|
||||||
goto out_drop_write;
|
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
|
* Actually perform the low-level subvolume creation after all
|
||||||
* this VFS fuzz.
|
* this VFS fuzz.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user