mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Enable syscall auditing for sun4v the arch by implementing the
AUDIT_SYSCALL_ENTER/EXIT macros. Discussed with: kmacy
This commit is contained in:
parent
9e1ea8f2fe
commit
430e6e77f0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164245
@ -92,6 +92,8 @@
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/hypervisor_api.h>
|
||||
|
||||
#include <security/audit/audit.h>
|
||||
|
||||
void trap(struct trapframe *tf, int64_t type, uint64_t data);
|
||||
void syscall(struct trapframe *tf);
|
||||
|
||||
@ -642,7 +644,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(error, td);
|
||||
|
||||
CTR5(KTR_SYSC, "syscall: p=%p error=%d %s return %#lx %#lx ", p,
|
||||
error, syscallnames[code], td->td_retval[0],
|
||||
|
Loading…
Reference in New Issue
Block a user