public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86: audit syscalls based on type of syscall not type of binary
@ 2008-08-07 18:14 Michael Davidson
  0 siblings, 0 replies; only message in thread
From: Michael Davidson @ 2008-08-07 18:14 UTC (permalink / raw)
  To: mingo, tglx; +Cc: linux-kernel


Fix syscall auditing to audit based on the actual type of system
call that was made, not the type of binary that made it.

Signed-off-by: Michael Davidson <md@google.com>

---

Index: linux-2.6.26.2/arch/x86/kernel/ptrace.c
===================================================================
--- linux-2.6.26.2.orig/arch/x86/kernel/ptrace.c	2008-08-06 09:19:01.000000000 -0700
+++ linux-2.6.26.2/arch/x86/kernel/ptrace.c	2008-08-07 11:01:25.976235000 -0700
@@ -1491,7 +1491,7 @@
 		syscall_trace(regs);
 
 	if (unlikely(current->audit_context)) {
-		if (test_thread_flag(TIF_IA32)) {
+		if (current_thread_info()->status & TS_COMPAT) {
 			audit_syscall_entry(AUDIT_ARCH_I386,
 					    regs->orig_ax,
 					    regs->bx, regs->cx,

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-07 18:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-07 18:14 [PATCH] x86: audit syscalls based on type of syscall not type of binary Michael Davidson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox