FreeBSD/sys/security/audit/audit_bsm_klib.c
/*
 * Convert a MSGCTL command to a specific event.
 */
Convert a MSGCTL command to a specific event.
Convert a MSGCTL command to a specific event .
au_event_t
audit_msgctl_to_event(int cmd)
{
	switch (cmd) {
	case IPC_RMID:
		return (AUE_MSGCTL_RMID);
	case IPC_SET:
		return (AUE_MSGCTL_SET);
	case IPC_STAT:
		return (AUE_MSGCTL_STAT);
	default:
		return (AUE_MSGCTL);
	}
}
au_event_t audit_msgctl_to_event ( int cmd ) { switch ( cmd ) { case IPC_RMID : return ( AUE_MSGCTL_RMID ) ; case IPC_SET : return ( AUE_MSGCTL_SET ) ; case IPC_STAT : return ( AUE_MSGCTL_STAT ) ; default : return ( AUE_MSGCTL ) ; } }
Convert a MSGCTL command to a specific event.
Convert a MSGCTL command to a specific event .
/* We will audit a bad command. */