Fix audit syscall success/failure reporting on PowerPC
Subsystems (2)
PATCH 1/1 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 <[email protected]>
arch/powerpc/kernel/ptrace.c +1 -1
@@ -553,7 +553,7 @@ #ifdef CONFIG_PPC32#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)
Signature · 1 line
dwmw2