ucred_getauid
state->as_info.ai_auid = ucred_getauid(ucred);
if (ucred_getauid(ucred) == AU_NOAUDITID) {
state->as_info.ai_auid = ucred_getauid(ucred);
extern au_id_t ucred_getauid(const ucred_t *uc);