From 76eda1318af3b4561195bf281b8cd174a7038416 Mon Sep 17 00:00:00 2001 From: rwatson Date: Sat, 16 Sep 2006 17:03:02 +0000 Subject: Add audit hooks for ppc, ia64 system call paths. Reviewed by: marcel (ia64) Obtained from: TrustedBSD Project MFC after: 3 days --- sys/ia64/ia32/ia32_trap.c | 4 ++++ sys/ia64/ia64/trap.c | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'sys/ia64') diff --git a/sys/ia64/ia32/ia32_trap.c b/sys/ia64/ia32/ia32_trap.c index af3f225..b900d66 100644 --- a/sys/ia64/ia32/ia32_trap.c +++ b/sys/ia64/ia32/ia32_trap.c @@ -46,6 +46,8 @@ __FBSDID("$FreeBSD$"); #include #include +#include + extern char *syscallnames[]; static void @@ -122,7 +124,9 @@ ia32_syscall(struct trapframe *tf) PTRACESTOP_SC(p, td, S_PT_SCE); + AUDIT_SYSCALL_ENTER(code, td); error = (*callp->sy_call)(td, args64); + AUDIT_SYSCALL_EXIT(error, td); } switch (error) { diff --git a/sys/ia64/ia64/trap.c b/sys/ia64/ia64/trap.c index c1a1cfa..41365a9 100644 --- a/sys/ia64/ia64/trap.c +++ b/sys/ia64/ia64/trap.c @@ -72,6 +72,8 @@ __FBSDID("$FreeBSD$"); #include #endif +#include + #include static int print_usertrap = 0; @@ -1016,7 +1018,9 @@ syscall(struct trapframe *tf) PTRACESTOP_SC(p, td, S_PT_SCE); + AUDIT_SYSCALL_ENTER(code, td); error = (*callp->sy_call)(td, args); + AUDIT_SYSCALL_EXIT(error, td); if (error != EJUSTRETURN) { /* -- cgit v1.1