summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-09-22 09:23:53 +0100
committerPaul Mackerras <paulus@samba.org>2006-09-26 15:24:34 +1000
commit4b9c876a812fd3e2b17e2d1c94082ee4cf31608f (patch)
tree3b0cef649377b831c14cd95c0077f7defdc0b1f9 /arch
parent7e4720201ad44ace85a443f41d668a62a737e7d0 (diff)
downloadlinux-4b9c876a812fd3e2b17e2d1c94082ee4cf31608f.tar.gz
linux-4b9c876a812fd3e2b17e2d1c94082ee4cf31608f.tar.bz2
linux-4b9c876a812fd3e2b17e2d1c94082ee4cf31608f.zip
[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')
-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)
#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)