From: David Woodhouse Date: Fri, 22 Sep 2006 08:23:53 +0000 (+0100) Subject: [POWERPC] Fix audit syscall success/failure reporting on PowerPC X-Git-Tag: v2.6.19-rc1~219^2~22 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=4b9c876a812fd3e2b17e2d1c94082ee4cf31608f;p=linux-2.6-omap-h63xx.git [POWERPC] Fix audit syscall success/failure reporting on PowerPC 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 Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c index dea75d73f98..cf1d1bc4926 100644 --- a/arch/powerpc/kernel/ptrace.c +++ b/arch/powerpc/kernel/ptrace.c @@ -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)