projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'work.mount0' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux-block.git]
/
fs
/
fsopen.c
diff --git
a/fs/fsopen.c
b/fs/fsopen.c
index a8bf83ce8d4e16cefe6da9106c8c9b4d1f71b9dc..043ffa8dc2637d88b813f223f459ac16ed76f150 100644
(file)
--- a/
fs/fsopen.c
+++ b/
fs/fsopen.c
@@
-226,6
+226,8
@@
static int vfs_fsconfig_locked(struct fs_context *fc, int cmd,
case FSCONFIG_CMD_CREATE:
if (fc->phase != FS_CONTEXT_CREATE_PARAMS)
return -EBUSY;
+ if (!mount_capable(fc))
+ return -EPERM;
fc->phase = FS_CONTEXT_CREATING;
ret = vfs_get_tree(fc);
if (ret)