diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2006-09-16 17:03:02 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2006-09-16 17:03:02 +0000 |
| commit | ef0d1723dbbc1abcff0b5391a915db65caf90d85 (patch) | |
| tree | 11299abe5365a5fe73d10676c26005ce40d4adcd /sys/powerpc | |
| parent | 9d2c6627a1abdf76ebb6c58283ae9fbb323e7f4e (diff) | |
Notes
Diffstat (limited to 'sys/powerpc')
| -rw-r--r-- | sys/powerpc/aim/trap.c | 4 | ||||
| -rw-r--r-- | sys/powerpc/powerpc/trap.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/powerpc/aim/trap.c b/sys/powerpc/aim/trap.c index 33ad897a199e..08bd24887b8a 100644 --- a/sys/powerpc/aim/trap.c +++ b/sys/powerpc/aim/trap.c @@ -55,6 +55,8 @@ __FBSDID("$FreeBSD$"); #endif #include <sys/vmmeter.h> +#include <security/audit/audit.h> + #include <vm/vm.h> #include <vm/pmap.h> #include <vm/vm_extern.h> @@ -418,7 +420,9 @@ syscall(struct trapframe *frame) PTRACESTOP_SC(p, td, S_PT_SCE); + AUDIT_SYSCALL_ENTER(code, td); error = (*callp->sy_call)(td, params); + AUDIT_SYSCALL_EXIT(error, td); CTR3(KTR_SYSC, "syscall: p=%s %s ret=%x", p->p_comm, syscallnames[code], td->td_retval[0]); diff --git a/sys/powerpc/powerpc/trap.c b/sys/powerpc/powerpc/trap.c index 33ad897a199e..08bd24887b8a 100644 --- a/sys/powerpc/powerpc/trap.c +++ b/sys/powerpc/powerpc/trap.c @@ -55,6 +55,8 @@ __FBSDID("$FreeBSD$"); #endif #include <sys/vmmeter.h> +#include <security/audit/audit.h> + #include <vm/vm.h> #include <vm/pmap.h> #include <vm/vm_extern.h> @@ -418,7 +420,9 @@ syscall(struct trapframe *frame) PTRACESTOP_SC(p, td, S_PT_SCE); + AUDIT_SYSCALL_ENTER(code, td); error = (*callp->sy_call)(td, params); + AUDIT_SYSCALL_EXIT(error, td); CTR3(KTR_SYSC, "syscall: p=%s %s ret=%x", p->p_comm, syscallnames[code], td->td_retval[0]); |
