projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb8e709
)
Btrfs: Don't call security_inode_mkdir during subvol creation
author
Chris Mason
<chris.mason@oracle.com>
Fri, 10 Oct 2008 14:23:22 +0000
(10:23 -0400)
committer
Chris Mason
<chris.mason@oracle.com>
Fri, 10 Oct 2008 14:23:22 +0000
(10:23 -0400)
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>
fs/btrfs/ioctl.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/ioctl.c
b/fs/btrfs/ioctl.c
index 3d85f18bbba6f2890de0eac73944c8f278bac056..1136ce2febcc150e9895e7815cec20573a221653 100644
(file)
--- a/
fs/btrfs/ioctl.c
+++ b/
fs/btrfs/ioctl.c
@@
-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.