]> git.pld-linux.org Git - packages/kernel.git/blob - linux-2.4.20-ptrace.patch
- added description of djurban's branch
[packages/kernel.git] / linux-2.4.20-ptrace.patch
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))
8 +       if (!child->task_dumpable)
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.820304 seconds and 3 git commands to generate.