diff options
author | rwatson <rwatson@FreeBSD.org> | 2007-10-29 18:07:48 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2007-10-29 18:07:48 +0000 |
commit | 21a7ea24a49f6c46a63c7706909400b8bb879f43 (patch) | |
tree | a6b41c0bccfa1163a76f2f24f99978a64e210754 /sys/security/audit/audit_bsm_klib.c | |
parent | d0482ebdaeb027bff247f380cc73bc14679dc3c3 (diff) | |
download | FreeBSD-src-21a7ea24a49f6c46a63c7706909400b8bb879f43.zip FreeBSD-src-21a7ea24a49f6c46a63c7706909400b8bb879f43.tar.gz |
Replace use of AU_NULL with 0 when no audit classes are in use; this
supports the removal of hard-coded audit class constants in OpenBSM
1.0. All audit classes are now dynamically configured via the
audit_class database.
Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/security/audit/audit_bsm_klib.c')
-rw-r--r-- | sys/security/audit/audit_bsm_klib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/security/audit/audit_bsm_klib.c b/sys/security/audit/audit_bsm_klib.c index 66ccdd9..3282226 100644 --- a/sys/security/audit/audit_bsm_klib.c +++ b/sys/security/audit/audit_bsm_klib.c @@ -78,7 +78,7 @@ au_event_class(au_event_t event) mtx_lock(&evclass_mtx); evcl = &evclass_hash[event % EVCLASSMAP_HASH_TABLE_SIZE]; - class = AU_NULL; + class = 0; LIST_FOREACH(evc, &evcl->head, entry) { if (evc->event == event) { class = evc->class; @@ -145,7 +145,7 @@ au_evclassmap_init(void) */ for (i = 0; i < SYS_MAXSYSCALL; i++) { if (sysent[i].sy_auevent != AUE_NULL) - au_evclassmap_insert(sysent[i].sy_auevent, AU_NULL); + au_evclassmap_insert(sysent[i].sy_auevent, 0); } } |