git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge to Fedora kernel-2.6.18-1.2255_FC5 patched with stable patch-2.6.18.5-vs2.0...
[linux-2.6.git]
/
fs
/
super.c
diff --git
a/fs/super.c
b/fs/super.c
index
d3c66fb
..
a4269d5
100644
(file)
--- a/
fs/super.c
+++ b/
fs/super.c
@@
-848,7
+848,7
@@
vfs_kern_mount(struct file_system_type *type, int flags, const char *name, void
sb = mnt->mnt_sb;
error = -EPERM;
- if (!
capable(CAP_SYS_ADMIN
) && !sb->s_bdev &&
+ if (!
vx_capable(CAP_SYS_ADMIN, VXC_BINARY_MOUNT
) && !sb->s_bdev &&
(sb->s_magic != PROC_SUPER_MAGIC) &&
(sb->s_magic != DEVPTS_SUPER_MAGIC))
goto out_sb;