]> git.pld-linux.org Git - packages/kernel.git/blame - linux-2.4.20-ptrace.patch
- ported from linux-2.4.25-atmdd.patch
[packages/kernel.git] / linux-2.4.20-ptrace.patch
CommitLineData
b04907ad 1--- linux-2.4.20/kernel/ptrace.c.org Fri Apr 18 22:12:31 2003
2+++ linux-2.4.20/kernel/ptrace.c Wed Apr 23 13:20:01 2003
3@@ -22,7 +22,7 @@
4 int ptrace_check_attach(struct task_struct *child, int kill)
5 {
6 mb();
7- if (!is_dumpable(child))
4d54bec5 8+ if (!child->task_dumpable)
b04907ad 9 return -EPERM;
10
11 if (!(child->ptrace & PT_PTRACED))
12@@ -140,7 +140,7 @@
13 /* Worry about races with exit() */
14 task_lock(tsk);
15 mm = tsk->mm;
16- if (!is_dumpable(tsk) || (&init_mm == mm))
17+ if (!tsk->task_dumpable || (&init_mm == mm))
18 mm = NULL;
19 if (mm)
20 atomic_inc(&mm->mm_users);
This page took 0.147332 seconds and 4 git commands to generate.