FreeBSD/contrib/openbsm/bin/auditd/auditd_fbsd.c
/*
 * Update the cached auditing state.
 */
Update the cached auditing state.
Update the cached auditing state .
void
auditd_set_state(int state)
{
	int old_auditing_state = auditing_state;
	if (state == AUD_STATE_INIT) 
		init_audit_state();
	else
		auditing_state = state;
	if (auditing_state != old_auditing_state) {
		if (auditing_state == AUD_STATE_ENABLED)
			auditd_log_notice("Auditing enabled");
		if (auditing_state == AUD_STATE_DISABLED)
			auditd_log_notice("Auditing disabled");
	}
}
void auditd_set_state ( int state ) { int old_auditing_state = auditing_state ; if ( state == AUD_STATE_INIT ) init_audit_state ( ) ; else auditing_state = state ; if ( auditing_state != old_auditing_state ) { if ( auditing_state == AUD_STATE_ENABLED ) auditd_log_notice ( " " ) ; if ( auditing_state == AUD_STATE_DISABLED ) auditd_log_notice ( " " ) ; } }
Update the cached auditing state.
Update the cached auditing state .