Lines Matching refs:app
270 struct audit_pipe_preselect *app; in audit_pipe_preselect_find() local
274 TAILQ_FOREACH(app, &ap->ap_preselect_list, app_list) { in audit_pipe_preselect_find()
275 if (app->app_auid == auid) { in audit_pipe_preselect_find()
276 return app; in audit_pipe_preselect_find()
289 struct audit_pipe_preselect *app; in audit_pipe_preselect_get() local
293 app = audit_pipe_preselect_find(ap, auid); in audit_pipe_preselect_get()
294 if (app != NULL) { in audit_pipe_preselect_get()
295 *maskp = app->app_mask; in audit_pipe_preselect_get()
311 struct audit_pipe_preselect *app, *app_new; in audit_pipe_preselect_set() local
319 app = audit_pipe_preselect_find(ap, auid); in audit_pipe_preselect_set()
320 if (app == NULL) { in audit_pipe_preselect_set()
321 app = app_new; in audit_pipe_preselect_set()
323 app->app_auid = auid; in audit_pipe_preselect_set()
324 TAILQ_INSERT_TAIL(&ap->ap_preselect_list, app, app_list); in audit_pipe_preselect_set()
326 app->app_mask = mask; in audit_pipe_preselect_set()
337 struct audit_pipe_preselect *app; in audit_pipe_preselect_delete() local
341 app = audit_pipe_preselect_find(ap, auid); in audit_pipe_preselect_delete()
342 if (app != NULL) { in audit_pipe_preselect_delete()
343 TAILQ_REMOVE(&ap->ap_preselect_list, app, app_list); in audit_pipe_preselect_delete()
349 kfree_type(struct audit_pipe_preselect, app); in audit_pipe_preselect_delete()
359 struct audit_pipe_preselect *app; in audit_pipe_preselect_flush_locked() local
363 while ((app = TAILQ_FIRST(&ap->ap_preselect_list)) != NULL) { in audit_pipe_preselect_flush_locked()
364 TAILQ_REMOVE(&ap->ap_preselect_list, app, app_list); in audit_pipe_preselect_flush_locked()
365 kfree_type(struct audit_pipe_preselect, app); in audit_pipe_preselect_flush_locked()
391 struct audit_pipe_preselect *app; in audit_pipe_preselect_check() local
400 app = audit_pipe_preselect_find(ap, auid); in audit_pipe_preselect_check()
401 if (app == NULL) { in audit_pipe_preselect_check()
410 return au_preselect(event, class, &app->app_mask, in audit_pipe_preselect_check()