summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwsalamon <wsalamon@FreeBSD.org>2006-02-04 14:11:33 +0000
committerwsalamon <wsalamon@FreeBSD.org>2006-02-04 14:11:33 +0000
commit8ef4ce651a0b65bf5df1b59c2d659d2532084517 (patch)
tree2a94496a99f415d3362b80a5d6cce423e86db1b0
parent1f7f51d43d49c41cc2e38df054111a55bf6c6f58 (diff)
downloadFreeBSD-src-8ef4ce651a0b65bf5df1b59c2d659d2532084517.zip
FreeBSD-src-8ef4ce651a0b65bf5df1b59c2d659d2532084517.tar.gz
Hook up the audit system to system call entry and exit. System calls will
now be audited. Obtained from: TrustedBSD Project Approved by: rwatson (mentor)
-rw-r--r--sys/i386/i386/trap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c
index 928c716..6bf16c2 100644
--- a/sys/i386/i386/trap.c
+++ b/sys/i386/i386/trap.c
@@ -77,6 +77,7 @@ __FBSDID("$FreeBSD$");
#ifdef HWPMC_HOOKS
#include <sys/pmckern.h>
#endif
+#include <security/audit/audit.h>
#include <vm/vm.h>
#include <vm/vm_param.h>
@@ -1013,7 +1014,9 @@ syscall(frame)
PTRACESTOP_SC(p, td, S_PT_SCE);
+ AUDIT_SYSCALL_ENTER(code, td);
error = (*callp->sy_call)(td, args);
+ AUDIT_SYSCALL_EXIT(error, td);
}
switch (error) {
OpenPOWER on IntegriCloud