Message ID | 1379707768-1804-32-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/fs/proc/root.c b/fs/proc/root.c index 9c7fab1..411068e 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, 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); }