aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/ptrace.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-09-22 04:23:53 -0400
committerPaul Mackerras <paulus@samba.org>2006-09-26 01:24:34 -0400
commit4b9c876a812fd3e2b17e2d1c94082ee4cf31608f (patch)
tree3b0cef649377b831c14cd95c0077f7defdc0b1f9 /arch/powerpc/kernel/ptrace.c
parent7e4720201ad44ace85a443f41d668a62a737e7d0 (diff)
[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 <dwmw2@infradead.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/ptrace.c')
-rw-r--r--arch/powerpc/kernel/ptrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c
index dea75d73f983..cf1d1bc49261 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)
553#endif 553#endif
554 554
555 if (unlikely(current->audit_context)) 555 if (unlikely(current->audit_context))
556 audit_syscall_exit((regs->ccr&0x1000)?AUDITSC_FAILURE:AUDITSC_SUCCESS, 556 audit_syscall_exit((regs->ccr&0x10000000)?AUDITSC_FAILURE:AUDITSC_SUCCESS,
557 regs->result); 557 regs->result);
558 558
559 if ((test_thread_flag(TIF_SYSCALL_TRACE) 559 if ((test_thread_flag(TIF_SYSCALL_TRACE)