Date: Fri, 19 Oct 2007 11:01:07 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 127770 for review Message-ID: <200710191101.l9JB17Fm005245@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=127770 Change 127770 by rwatson@rwatson_zoo on 2007/10/19 11:00:46 Remove hard-coded audit class identifiers. Affected files ... .. //depot/projects/trustedbsd/audit3/sys/security/audit/audit.c#49 edit .. //depot/projects/trustedbsd/audit3/sys/security/audit/audit_bsm_klib.c#15 edit Differences ... ==== //depot/projects/trustedbsd/audit3/sys/security/audit/audit.c#49 (text+ko) ==== @@ -231,8 +231,8 @@ 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; ==== //depot/projects/trustedbsd/audit3/sys/security/audit/audit_bsm_klib.c#15 (text+ko) ==== @@ -79,7 +79,7 @@ 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; @@ -146,7 +146,7 @@ */ 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); } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710191101.l9JB17Fm005245>