Security: split proc ptrace checking into read vs. attach
[safe/jmp/linux-2.6] / fs / proc / task_nommu.c
index 4b4f9cc..5d84e71 100644 (file)
@@ -113,7 +113,7 @@ static int show_map(struct seq_file *m, void *_vml)
        struct proc_maps_private *priv = m->private;
        struct task_struct *task = priv->task;
 
-       if (maps_protect && !ptrace_may_attach(task))
+       if (maps_protect && !ptrace_may_access(task, PTRACE_MODE_READ))
                return -EACCES;
 
        return nommu_vma_show(m, vml->vma);