MCPcopy Create free account
hub / github.com/F-Stack/f-stack / audit_pipe_preselect_find

Function audit_pipe_preselect_find

freebsd/security/audit/audit_pipe.c:273–285  ·  view source on GitHub ↗

* Find an audit pipe preselection specification for an auid, if any. */

Source from the content-addressed store, hash-verified

271 * Find an audit pipe preselection specification for an auid, if any.
272 */
273static struct audit_pipe_preselect *
274audit_pipe_preselect_find(struct audit_pipe *ap, au_id_t auid)
275{
276 struct audit_pipe_preselect *app;
277
278 AUDIT_PIPE_LOCK_ASSERT(ap);
279
280 TAILQ_FOREACH(app, &ap->ap_preselect_list, app_list) {
281 if (app->app_auid == auid)
282 return (app);
283 }
284 return (NULL);
285}
286
287/*
288 * Query the per-pipe mask for a specific auid.

Callers 4

audit_pipe_preselect_getFunction · 0.85
audit_pipe_preselect_setFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected