Skip to contentSkip to conversation

Fix audit syscall success/failure reporting on PowerPC

PATCH New David Woodhouse 1 participant 1 message Sep 22, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

arch/powerpc/kernel/ptrace.c +1 -1
index dea75d7..cf1d1bc 100644
@@ -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