[POWERPC] Fix audit syscall success/failure reporting on PowerPC
authorDavid Woodhouse <dwmw2@infradead.org>
Fri, 22 Sep 2006 08:23:53 +0000 (09:23 +0100)
committerPaul Mackerras <paulus@samba.org>
Tue, 26 Sep 2006 05:24:34 +0000 (15:24 +1000)
Due to my stupidity, we were checking for the wrong bit in CCR when
attempting to determine whether a syscall succeeded or not. Remedy the
symptom, if not the cause.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/ptrace.c

index dea75d7..cf1d1bc 100644 (file)
@@ -553,7 +553,7 @@ void do_syscall_trace_leave(struct pt_regs *regs)
 #endif
 
        if (unlikely(current->audit_context))
-               audit_syscall_exit((regs->ccr&0x1000)?AUDITSC_FAILURE:AUDITSC_SUCCESS,
+               audit_syscall_exit((regs->ccr&0x10000000)?AUDITSC_FAILURE:AUDITSC_SUCCESS,
                                   regs->result);
 
        if ((test_thread_flag(TIF_SYSCALL_TRACE)