xnu-4903.241.1/bsd/security/audit/audit_pipe.c
/*
 * Find an audit pipe preselection specification for an auid, if any.
 */
Find an audit pipe preselection specification for an auid, if any.
Find an audit pipe preselection specification for an auid if any .
static struct audit_pipe_preselect *
audit_pipe_preselect_find(struct audit_pipe *ap, au_id_t auid)
{
	struct audit_pipe_preselect *app;
	AUDIT_PIPE_LOCK_ASSERT(ap);
	TAILQ_FOREACH(app, &ap->ap_preselect_list, app_list) {
		if (app->app_auid == auid)
			return (app);
	}
	return (NULL);
}
static struct audit_pipe_preselect * audit_pipe_preselect_find ( struct audit_pipe * ap , au_id_t auid ) { struct audit_pipe_preselect * app ; AUDIT_PIPE_LOCK_ASSERT ( ap ) ; TAILQ_FOREACH ( app , & ap -> ap_preselect_list , app_list ) { if ( app -> app_auid == auid ) return ( app ) ; } return ( NULL ) ; }
Find an audit pipe preselection specification for an auid, if any.
Find an audit pipe preselection specification for an auid if any .