* Delete all per-auid masks on an audit pipe. */
| 359 | * Delete all per-auid masks on an audit pipe. |
| 360 | */ |
| 361 | static void |
| 362 | audit_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 | |
| 374 | static void |
| 375 | audit_pipe_preselect_flush(struct audit_pipe *ap) |
no test coverage detected