FreeBSD/sys/security/audit/audit_arg.c
/*
 * Audit the argument strings passed to exec.
 */
Audit the argument strings passed to exec.
Audit the argument strings passed to exec .
void
audit_arg_argv(char *argv, int argc, int length)
{
	struct kaudit_record *ar;
	if (audit_argv == 0)
		return;
	ar = currecord();
	if (ar == NULL)
		return;
	ar->k_ar.ar_arg_argv = malloc(length, M_AUDITTEXT, M_WAITOK);
	bcopy(argv, ar->k_ar.ar_arg_argv, length);
	ar->k_ar.ar_arg_argc = argc;
	ARG_SET_VALID(ar, ARG_ARGV);
}
void audit_arg_argv ( char * argv , int argc , int length ) { struct kaudit_record * ar ; if ( audit_argv == 0 ) return ; ar = currecord ( ) ; if ( ar == NULL ) return ; ar -> k_ar . ar_arg_argv = malloc ( length , M_AUDITTEXT , M_WAITOK ) ; bcopy ( argv , ar -> k_ar . ar_arg_argv , length ) ; ar -> k_ar . ar_arg_argc = argc ; ARG_SET_VALID ( ar , ARG_ARGV ) ; }
Audit the argument strings passed to exec.
Audit the argument strings passed to exec .