Changeset View
Changeset View
Standalone View
Standalone View
sys/security/audit/audit_bsm_db.c
Show First 20 Lines • Show All 183 Lines • ▼ Show 20 Lines | au_evclassmap_init(void) | ||||
* native ABI system calls, as there may be audit events reachable | * native ABI system calls, as there may be audit events reachable | ||||
* only through non-native system calls. It also seems a shame to | * only through non-native system calls. It also seems a shame to | ||||
* frob the mutex this early. | * frob the mutex this early. | ||||
*/ | */ | ||||
for (i = 0; i < SYS_MAXSYSCALL; i++) { | for (i = 0; i < SYS_MAXSYSCALL; i++) { | ||||
if (sysent[i].sy_auevent != AUE_NULL) | if (sysent[i].sy_auevent != AUE_NULL) | ||||
au_evclassmap_insert(sysent[i].sy_auevent, 0); | au_evclassmap_insert(sysent[i].sy_auevent, 0); | ||||
} | } | ||||
/* | |||||
* Set up the initial event to class mapping for NFS RPC calls. | |||||
*/ | |||||
for (i = 0; i < NFS_V3NPROCS; i++) { | |||||
au_evclassmap_insert(nfsrv_auevent[i], 0); | |||||
} | |||||
} | } | ||||
/* | /* | ||||
* Look up the name for an audit event in the event-to-name mapping table. | * Look up the name for an audit event in the event-to-name mapping table. | ||||
*/ | */ | ||||
int | int | ||||
au_event_name(au_event_t event, char *name) | au_event_name(au_event_t event, char *name) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 206 Lines • Show Last 20 Lines |