git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Security: split proc ptrace checking into read vs. attach
[safe/jmp/linux-2.6]
/
fs
/
proc
/
task_nommu.c
diff --git
a/fs/proc/task_nommu.c
b/fs/proc/task_nommu.c
index
4b4f9cc
..
5d84e71
100644
(file)
--- a/
fs/proc/task_nommu.c
+++ b/
fs/proc/task_nommu.c
@@
-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_a
ttach(task
))
+ if (maps_protect && !ptrace_may_a
ccess(task, PTRACE_MODE_READ
))
return -EACCES;
return nommu_vma_show(m, vml->vma);