sys/security/audit/audit_bsm.c
/*
 * Verify that a record is a valid BSM record. This verification is simple
 * now, but may be expanded on sometime in the future.  Return 1 if the
 * record is good, 0 otherwise.
 */
Verify that a record is a valid BSM record. This verification is simple
now, but may be expanded on sometime in the future.  Return 1 if the
record is good, 0 otherwise.
Verify that a record is a valid BSM record . This verification is simple now but may be expanded on sometime in the future . Return 1 if the record is good 0 otherwise .
int
bsm_rec_verify(void *rec)
{
	char c = *(char *)rec;
	if ((c != AUT_HEADER32) && (c != AUT_HEADER32_EX) &&
	    (c != AUT_HEADER64) && (c != AUT_HEADER64_EX))
		return (0);
	return (1);
}
int bsm_rec_verify ( void * rec ) { char c = * ( char * ) rec ; if ( ( c != AUT_HEADER32 ) && ( c != AUT_HEADER32_EX ) && ( c != AUT_HEADER64 ) && ( c != AUT_HEADER64_EX ) ) return ( 0 ) ; return ( 1 ) ; }
Verify that a record is a valid BSM record.
Verify that a record is a valid BSM record .
/*
	 * Check the token ID of the first token; it has to be a header
	 * token.
	 *
	 * XXXAUDIT There needs to be a token structure to map a token.
	 * XXXAUDIT 'Shouldn't be simply looking at the first char.
	 */