projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
b36a155
)
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
author
Linus Torvalds
<torvalds@linux-foundation.org>
Wed, 31 Jul 2019 20:26:54 +0000
(13:26 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Wed, 31 Jul 2019 20:26:54 +0000
(13:26 -0700)
Pull mount_capable() fix from Al Viro.
* 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
Unbreak mount_capable()
fs/super.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/super.c
b/fs/super.c
index 113c58f194255e3fc57166467018d5eab565548a..5960578a40760a26bc0ecd88e28177ce748f4380 100644
(file)
--- a/
fs/super.c
+++ b/
fs/super.c
@@
-478,13
+478,10
@@
EXPORT_SYMBOL(generic_shutdown_super);
bool mount_capable(struct fs_context *fc)
{
- struct user_namespace *user_ns = fc->global ? &init_user_ns
- : fc->user_ns;
-
if (!(fc->fs_type->fs_flags & FS_USERNS_MOUNT))
return capable(CAP_SYS_ADMIN);
else
- return ns_capable(user_ns, CAP_SYS_ADMIN);
+ return ns_capable(
fc->
user_ns, CAP_SYS_ADMIN);
}
/**