Lines Matching refs:app
276 struct audit_pipe_preselect *app;
280 TAILQ_FOREACH(app, &ap->ap_preselect_list, app_list) {
281 if (app->app_auid == auid)
282 return (app);
294 struct audit_pipe_preselect *app;
298 app = audit_pipe_preselect_find(ap, auid);
299 if (app != NULL) {
300 *maskp = app->app_mask;
315 struct audit_pipe_preselect *app, *app_new;
323 app = audit_pipe_preselect_find(ap, auid);
324 if (app == NULL) {
325 app = app_new;
327 app->app_auid = auid;
328 TAILQ_INSERT_TAIL(&ap->ap_preselect_list, app, app_list);
330 app->app_mask = mask;
342 struct audit_pipe_preselect *app;
346 app = audit_pipe_preselect_find(ap, auid);
347 if (app != NULL) {
348 TAILQ_REMOVE(&ap->ap_preselect_list, app, app_list);
353 if (app != NULL)
354 free(app, M_AUDIT_PIPE_PRESELECT);
364 struct audit_pipe_preselect *app;
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);
397 struct audit_pipe_preselect *app;
406 app = audit_pipe_preselect_find(ap, auid);
407 if (app == NULL) {
415 return (au_preselect(event, class, &app->app_mask,