diff options
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/root.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/proc/root.c b/fs/proc/root.c index 229e366598da..38bd5d423fcd 100644 --- 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, | |||
110 | ns = task_active_pid_ns(current); | 110 | ns = task_active_pid_ns(current); |
111 | options = data; | 111 | options = data; |
112 | 112 | ||
113 | if (!current_user_ns()->may_mount_proc) | 113 | if (!current_user_ns()->may_mount_proc || |
114 | !ns_capable(ns->user_ns, CAP_SYS_ADMIN)) | ||
114 | return ERR_PTR(-EPERM); | 115 | return ERR_PTR(-EPERM); |
115 | } | 116 | } |
116 | 117 | ||