projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
coredump masking: reimplementation of dumpable using two flags
[linux-2.6-block.git]
/
kernel
/
ptrace.c
diff --git
a/kernel/ptrace.c
b/kernel/ptrace.c
index 4a1745f1dadf28c93cad33eadc135d8190912462..82a558b655dabb9dc7990aedc804b9b04d8f1525 100644
(file)
--- a/
kernel/ptrace.c
+++ b/
kernel/ptrace.c
@@
-142,7
+142,7
@@
static int may_attach(struct task_struct *task)
return -EPERM;
smp_rmb();
if (task->mm)
- dumpable =
task->mm->dumpable
;
+ dumpable =
get_dumpable(task->mm)
;
if (!dumpable && !capable(CAP_SYS_PTRACE))
return -EPERM;