--- kernel/ptrace.c 2003/04/22 21:14:20 1.1 +++ kernel/ptrace.c 2003/04/25 06:21:16 1.3 @@ -21,9 +21,6 @@ */ int ptrace_check_attach(struct task_struct *child, int kill) { - mb(); - if (!is_dumpable(child)) - return -EPERM; if (!(child->ptrace & PT_PTRACED)) return -ESRCH; @@ -127,8 +124,6 @@ int access_process_vm(struct task_struct /* Worry about races with exit() */ task_lock(tsk); mm = tsk->mm; - if (!is_dumpable(tsk) || (&init_mm == mm)) - mm = NULL; if (mm) atomic_inc(&mm->mm_users); task_unlock(tsk); --- kernel/sys.c 2003/04/25 06:23:15 1.1 +++ kernel/sys.c 2003/04/25 06:23:51 @@ -1252,8 +1252,7 @@ asmlinkage long sys_prctl(int option, un error = -EINVAL; break; } - if (is_dumpable(current)) - current->mm->dumpable = arg2; + current->mm->dumpable = arg2; break; case PR_SET_UNALIGN: