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

Function audit_pipe_preselect_flush_locked

freebsd/security/audit/audit_pipe.c:361–372  ·  view source on GitHub ↗

* Delete all per-auid masks on an audit pipe. */

Source from the content-addressed store, hash-verified

359 * Delete all per-auid masks on an audit pipe.
360 */
361static void
362audit_pipe_preselect_flush_locked(struct audit_pipe *ap)
363{
364 struct audit_pipe_preselect *app;
365
366 AUDIT_PIPE_LOCK_ASSERT(ap);
367
368 while ((app = TAILQ_FIRST(&ap->ap_preselect_list)) != NULL) {
369 TAILQ_REMOVE(&ap->ap_preselect_list, app, app_list);
370 free(app, M_AUDIT_PIPE_PRESELECT);
371 }
372}
373
374static void
375audit_pipe_preselect_flush(struct audit_pipe *ap)

Callers 2

audit_pipe_freeFunction · 0.85

Calls 1

freeFunction · 0.50

Tested by

no test coverage detected