Skip to content

Commit

Permalink
Btrfs: Don't call security_inode_mkdir during subvol creation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chris Mason committed Oct 10, 2008
1 parent cb8e709 commit a3dddf3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a3dddf3

Please sign in to comment.