Lines Matching defs:app
271 struct audit_pipe_preselect *app;
275 TAILQ_FOREACH(app, &ap->ap_preselect_list, app_list) {
276 if (app->app_auid == auid)
277 return (app);
289 struct audit_pipe_preselect *app;
293 app = audit_pipe_preselect_find(ap, auid);
294 if (app != NULL) {
295 *maskp = app->app_mask;
310 struct audit_pipe_preselect *app, *app_new;
318 app = audit_pipe_preselect_find(ap, auid);
319 if (app == NULL) {
320 app = app_new;
322 app->app_auid = auid;
323 TAILQ_INSERT_TAIL(&ap->ap_preselect_list, app, app_list);
325 app->app_mask = mask;
337 struct audit_pipe_preselect *app;
341 app = audit_pipe_preselect_find(ap, auid);
342 if (app != NULL) {
343 TAILQ_REMOVE(&ap->ap_preselect_list, app, app_list);
348 if (app != NULL)
349 free(app, M_AUDIT_PIPE_PRESELECT);
359 struct audit_pipe_preselect *app;
363 while ((app = TAILQ_FIRST(&ap->ap_preselect_list)) != NULL) {
364 TAILQ_REMOVE(&ap->ap_preselect_list, app, app_list);
365 free(app, M_AUDIT_PIPE_PRESELECT);
392 struct audit_pipe_preselect *app;
401 app = audit_pipe_preselect_find(ap, auid);
402 if (app == NULL) {
410 return (au_preselect(event, class, &app->app_mask,