diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-02-18 16:36:56 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-02-18 16:36:56 +0000 |
commit | e63de5c5ca6322f1263c9ff28d253285060e3ce2 (patch) | |
tree | 3ae96346b4e5f2a6f942a1845ee066eb3427cf14 /sys/sparc64 | |
parent | 0fd1dd36d3f19275716c2100262735608555e434 (diff) | |
download | FreeBSD-src-e63de5c5ca6322f1263c9ff28d253285060e3ce2.zip FreeBSD-src-e63de5c5ca6322f1263c9ff28d253285060e3ce2.tar.gz |
Add system call auditing support for sparc64.
Submitted by: brueffer
Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/sparc64/trap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sparc64/sparc64/trap.c b/sys/sparc64/sparc64/trap.c index c38f72a..f6e9e0d 100644 --- a/sys/sparc64/sparc64/trap.c +++ b/sys/sparc64/sparc64/trap.c @@ -66,6 +66,7 @@ #include <sys/uio.h> #include <sys/ktrace.h> #endif +#include <security/audit/audit.h> #include <vm/vm.h> #include <vm/pmap.h> @@ -593,7 +594,9 @@ syscall(struct trapframe *tf) PTRACESTOP_SC(p, td, S_PT_SCE); + AUDIT_SYSCALL_ENTER(code, td); error = (*callp->sy_call)(td, argp); + AUDIT_SYSCALL_EXIT(code, td); CTR5(KTR_SYSC, "syscall: p=%p error=%d %s return %#lx %#lx ", p, error, syscallnames[code], td->td_retval[0], |