projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
CIFS: Fix wrong restart readdir for SMB1
[firefly-linux-kernel-4.4.55.git]
/
fs
/
proc
/
root.c
diff --git
a/fs/proc/root.c
b/fs/proc/root.c
index 41a6ea93f486ff81b6b112821339a66f0b020324..04ec276c7bab9dfcfd65a4bc5e61bb15ac413a2f 100644
(file)
--- a/
fs/proc/root.c
+++ b/
fs/proc/root.c
@@
-110,7
+110,8
@@
static struct dentry *proc_mount(struct file_system_type *fs_type,
ns = task_active_pid_ns(current);
options = data;
- if (!current_user_ns()->may_mount_proc)
+ if (!current_user_ns()->may_mount_proc ||
+ !ns_capable(ns->user_ns, CAP_SYS_ADMIN))
return ERR_PTR(-EPERM);
}