diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-09-16 17:03:02 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-09-16 17:03:02 +0000 |
commit | 76eda1318af3b4561195bf281b8cd174a7038416 (patch) | |
tree | 11299abe5365a5fe73d10676c26005ce40d4adcd /sys/ia64/ia32 | |
parent | 97a1b8f884131b9db05eda41b2867738bf83216c (diff) | |
download | FreeBSD-src-76eda1318af3b4561195bf281b8cd174a7038416.zip FreeBSD-src-76eda1318af3b4561195bf281b8cd174a7038416.tar.gz |
Add audit hooks for ppc, ia64 system call paths.
Reviewed by: marcel (ia64)
Obtained from: TrustedBSD Project
MFC after: 3 days
Diffstat (limited to 'sys/ia64/ia32')
-rw-r--r-- | sys/ia64/ia32/ia32_trap.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 <machine/md_var.h> #include <i386/include/psl.h> +#include <security/audit/audit.h> + 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) { |