FreeBSD/sys/security/audit/audit_bsm_klib.c
/*
 * Convert a command for the auditon() system call to a audit event.
 */
Convert a command for the auditon() system call to a audit event.
Convert a command for the auditon () system call to a audit event .
au_event_t
auditon_command_event(int cmd)
{
	switch(cmd) {
	case A_GETPOLICY:
		return (AUE_AUDITON_GPOLICY);
	case A_SETPOLICY:
		return (AUE_AUDITON_SPOLICY);
	case A_GETKMASK:
		return (AUE_AUDITON_GETKMASK);
	case A_SETKMASK:
		return (AUE_AUDITON_SETKMASK);
	case A_GETQCTRL:
		return (AUE_AUDITON_GQCTRL);
	case A_SETQCTRL:
		return (AUE_AUDITON_SQCTRL);
	case A_GETCWD:
		return (AUE_AUDITON_GETCWD);
	case A_GETCAR:
		return (AUE_AUDITON_GETCAR);
	case A_GETSTAT:
		return (AUE_AUDITON_GETSTAT);
	case A_SETSTAT:
		return (AUE_AUDITON_SETSTAT);
	case A_SETUMASK:
		return (AUE_AUDITON_SETUMASK);
	case A_SETSMASK:
		return (AUE_AUDITON_SETSMASK);
	case A_GETCOND:
		return (AUE_AUDITON_GETCOND);
	case A_SETCOND:
		return (AUE_AUDITON_SETCOND);
	case A_GETCLASS:
		return (AUE_AUDITON_GETCLASS);
	case A_SETCLASS:
		return (AUE_AUDITON_SETCLASS);
	case A_GETPINFO:
	case A_SETPMASK:
	case A_SETFSIZE:
	case A_GETFSIZE:
	case A_GETPINFO_ADDR:
	case A_GETKAUDIT:
	case A_SETKAUDIT:
	default:
		return (AUE_AUDITON);	
	}
}
au_event_t auditon_command_event ( int cmd ) { switch ( cmd ) { case A_GETPOLICY : return ( AUE_AUDITON_GPOLICY ) ; case A_SETPOLICY : return ( AUE_AUDITON_SPOLICY ) ; case A_GETKMASK : return ( AUE_AUDITON_GETKMASK ) ; case A_SETKMASK : return ( AUE_AUDITON_SETKMASK ) ; case A_GETQCTRL : return ( AUE_AUDITON_GQCTRL ) ; case A_SETQCTRL : return ( AUE_AUDITON_SQCTRL ) ; case A_GETCWD : return ( AUE_AUDITON_GETCWD ) ; case A_GETCAR : return ( AUE_AUDITON_GETCAR ) ; case A_GETSTAT : return ( AUE_AUDITON_GETSTAT ) ; case A_SETSTAT : return ( AUE_AUDITON_SETSTAT ) ; case A_SETUMASK : return ( AUE_AUDITON_SETUMASK ) ; case A_SETSMASK : return ( AUE_AUDITON_SETSMASK ) ; case A_GETCOND : return ( AUE_AUDITON_GETCOND ) ; case A_SETCOND : return ( AUE_AUDITON_SETCOND ) ; case A_GETCLASS : return ( AUE_AUDITON_GETCLASS ) ; case A_SETCLASS : return ( AUE_AUDITON_SETCLASS ) ; case A_GETPINFO : case A_SETPMASK : case A_SETFSIZE : case A_GETFSIZE : case A_GETPINFO_ADDR : case A_GETKAUDIT : case A_SETKAUDIT : default : return ( AUE_AUDITON ) ; } }
Convert a command for the auditon() system call to a audit event.
Convert a command for the auditon () system call to a audit event .
/* No special record */