FreeBSD/sys/security/audit/audit_arg.c
/*
 * Audit the environment strings passed to exec.
 */
Audit the environment strings passed to exec.
Audit the environment strings passed to exec .
void
audit_arg_envv(char *envv, int envc, int length)
{
	struct kaudit_record *ar;
	if (audit_arge == 0)
		return;
	ar = currecord();
	if (ar == NULL)
		return;
	ar->k_ar.ar_arg_envv = malloc(length, M_AUDITTEXT, M_WAITOK);
	bcopy(envv, ar->k_ar.ar_arg_envv, length);
	ar->k_ar.ar_arg_envc = envc;
	ARG_SET_VALID(ar, ARG_ENVV);
}
void audit_arg_envv ( char * envv , int envc , int length ) { struct kaudit_record * ar ; if ( audit_arge == 0 ) return ; ar = currecord ( ) ; if ( ar == NULL ) return ; ar -> k_ar . ar_arg_envv = malloc ( length , M_AUDITTEXT , M_WAITOK ) ; bcopy ( envv , ar -> k_ar . ar_arg_envv , length ) ; ar -> k_ar . ar_arg_envc = envc ; ARG_SET_VALID ( ar , ARG_ENVV ) ; }
Audit the environment strings passed to exec.
Audit the environment strings passed to exec .