FreeBSD/sys/security/audit/audit_bsm_klib.c
/*
 * Look up the class for an audit event in the class mapping table.
 */
Look up the class for an audit event in the class mapping table.
Look up the class for an audit event in the class mapping table .
au_class_t
au_event_class(au_event_t event)
{
	struct evclass_list *evcl;
	struct evclass_elem *evc;
	au_class_t class;
	EVCLASS_RLOCK();
	evcl = &evclass_hash[event % EVCLASSMAP_HASH_TABLE_SIZE];
	class = 0;
	LIST_FOREACH(evc, &evcl->head, entry) {
		if (evc->event == event) {
			class = evc->class;
			goto out;
		}
	}
out:
	EVCLASS_RUNLOCK();
	return (class);
}
au_class_t au_event_class ( au_event_t event ) { struct evclass_list * evcl ; struct evclass_elem * evc ; au_class_t class ; EVCLASS_RLOCK ( ) ; evcl = & evclass_hash [ event % EVCLASSMAP_HASH_TABLE_SIZE ] ; class = 0 ; LIST_FOREACH ( evc , & evcl -> head , entry ) { if ( evc -> event == event ) { class = evc -> class ; goto out ; } } out : EVCLASS_RUNLOCK ( ) ; return ( class ) ; }
Look up the class for an audit event in the class mapping table.
Look up the class for an audit event in the class mapping table .