[POWERPC] Don't touch PT_DTRACE in exec
authorRoland McGrath <roland@redhat.com>
Mon, 17 Mar 2008 05:01:20 +0000 (16:01 +1100)
committerPaul Mackerras <paulus@samba.org>
Tue, 25 Mar 2008 21:44:05 +0000 (08:44 +1100)
The PT_DTRACE flag is meaningless and obsolete.
Don't touch it.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/process.c
arch/powerpc/kernel/sys_ppc32.c

index 4846bf543a8c5cf9dd2f95a611c4deae04cd9863..7c8e3da238107b43fc943f999294cc7f8610671f 100644 (file)
@@ -862,11 +862,6 @@ int sys_execve(unsigned long a0, unsigned long a1, unsigned long a2,
        flush_spe_to_thread(current);
        error = do_execve(filename, (char __user * __user *) a1,
                          (char __user * __user *) a2, regs);
-       if (error == 0) {
-               task_lock(current);
-               current->ptrace &= ~PT_DTRACE;
-               task_unlock(current);
-       }
        putname(filename);
 out:
        return error;
index 4a4f5c6b560bb6608cd133e6387929b056990570..9c3371e6958ee888d77dbc5c44814f89d42f66b2 100644 (file)
@@ -368,11 +368,6 @@ long compat_sys_execve(unsigned long a0, unsigned long a1, unsigned long a2,
 
        error = compat_do_execve(filename, compat_ptr(a1), compat_ptr(a2), regs);
 
-       if (error == 0) {
-               task_lock(current);
-               current->ptrace &= ~PT_DTRACE;
-               task_unlock(current);
-       }
        putname(filename);
 
 out: