Lines Matching defs:app
273 struct audit_pipe_preselect *app;
277 TAILQ_FOREACH(app, &ap->ap_preselect_list, app_list) {
278 if (app->app_auid == auid)
279 return (app);
291 struct audit_pipe_preselect *app;
295 app = audit_pipe_preselect_find(ap, auid);
296 if (app != NULL) {
297 *maskp = app->app_mask;
312 struct audit_pipe_preselect *app, *app_new;
320 app = audit_pipe_preselect_find(ap, auid);
321 if (app == NULL) {
322 app = app_new;
324 app->app_auid = auid;
325 TAILQ_INSERT_TAIL(&ap->ap_preselect_list, app, app_list);
327 app->app_mask = mask;
339 struct audit_pipe_preselect *app;
343 app = audit_pipe_preselect_find(ap, auid);
344 if (app != NULL) {
345 TAILQ_REMOVE(&ap->ap_preselect_list, app, app_list);
350 if (app != NULL)
351 free(app, M_AUDIT_PIPE_PRESELECT);
361 struct audit_pipe_preselect *app;
365 while ((app = TAILQ_FIRST(&ap->ap_preselect_list)) != NULL) {
366 TAILQ_REMOVE(&ap->ap_preselect_list, app, app_list);
367 free(app, M_AUDIT_PIPE_PRESELECT);
394 struct audit_pipe_preselect *app;
403 app = audit_pipe_preselect_find(ap, auid);
404 if (app == NULL) {
412 return (au_preselect(event, class, &app->app_mask,