summaryrefslogtreecommitdiffstats
path: root/sys/security
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-10-29 18:07:48 +0000
committerrwatson <rwatson@FreeBSD.org>2007-10-29 18:07:48 +0000
commit21a7ea24a49f6c46a63c7706909400b8bb879f43 (patch)
treea6b41c0bccfa1163a76f2f24f99978a64e210754 /sys/security
parentd0482ebdaeb027bff247f380cc73bc14679dc3c3 (diff)
downloadFreeBSD-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')
-rw-r--r--sys/security/audit/audit.c4
-rw-r--r--sys/security/audit/audit_bsm_klib.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/security/audit/audit.c b/sys/security/audit/audit.c
index 1b4ac87..1f771e9 100644
--- a/sys/security/audit/audit.c
+++ b/sys/security/audit/audit.c
@@ -229,8 +229,8 @@ audit_init(void)
audit_fstat.af_filesz = 0; /* '0' means unset, unbounded. */
audit_fstat.af_currsz = 0;
- audit_nae_mask.am_success = AU_NULL;
- audit_nae_mask.am_failure = AU_NULL;
+ audit_nae_mask.am_success = 0;
+ audit_nae_mask.am_failure = 0;
TAILQ_INIT(&audit_q);
audit_q_len = 0;
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);
}
}
OpenPOWER on IntegriCloud