summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2006-09-09 10:20:31 +0000
committerrwatson <rwatson@FreeBSD.org>2006-09-09 10:20:31 +0000
commit5ac138caee20a8dbef989cb4a27e582fd3153a13 (patch)
treeb51f5589b563d2176ef45cdda7eb9dbde8ef30f2 /sys
parenta3414aa8863321b913aeeb456efd3e2f6c8205d4 (diff)
downloadFreeBSD-src-5ac138caee20a8dbef989cb4a27e582fd3153a13.zip
FreeBSD-src-5ac138caee20a8dbef989cb4a27e582fd3153a13.tar.gz
Audit sysarch() operation argument.
MFC after: 3 days
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/i386/sys_machdep.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/i386/i386/sys_machdep.c b/sys/i386/i386/sys_machdep.c
index d177b99..f2e90b2 100644
--- a/sys/i386/i386/sys_machdep.c
+++ b/sys/i386/i386/sys_machdep.c
@@ -56,6 +56,8 @@ __FBSDID("$FreeBSD$");
#include <machine/proc.h>
#include <machine/sysarch.h>
+#include <security/audit/audit.h>
+
#include <vm/vm_kern.h> /* for kernel_map */
#define MAX_LD 8192
@@ -93,6 +95,7 @@ sysarch(td, uap)
uint32_t base;
struct segment_descriptor sd, *sdp;
+ AUDIT_ARG(cmd, uap->op);
switch (uap->op) {
case I386_GET_IOPERM:
case I386_SET_IOPERM:
OpenPOWER on IntegriCloud