Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3dddf3f authored by Chris Mason's avatar Chris Mason
Browse files

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: default avatarChris Mason <chris.mason@oracle.com>
parent cb8e7090
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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.