提交 a3dddf3f 编写于 作者: C Chris Mason

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: NChris Mason <chris.mason@oracle.com>
上级 cb8e7090
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册