proc: remove kernel.maps_protect
After commit 831830b5a2
aka
"restrict reading from /proc/<pid>/maps to those who share ->mm or can ptrace"
sysctl stopped being relevant because commit moved security checks from ->show
time to ->start time (mm_for_maps()).
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Kees Cook <kees.cook@canonical.com>
This commit is contained in:
@ -110,11 +110,6 @@ int task_statm(struct mm_struct *mm, int *shared, int *text,
|
||||
static int show_map(struct seq_file *m, void *_vml)
|
||||
{
|
||||
struct vm_list_struct *vml = _vml;
|
||||
struct proc_maps_private *priv = m->private;
|
||||
struct task_struct *task = priv->task;
|
||||
|
||||
if (maps_protect && !ptrace_may_access(task, PTRACE_MODE_READ))
|
||||
return -EACCES;
|
||||
|
||||
return nommu_vma_show(m, vml->vma);
|
||||
}
|
||||
|
Reference in New Issue
Block a user