Lines Matching refs:avc
50 static struct avc_t *avc = NULL; variable
82 rc = sepol_bool_key_create(avc->handle, name, &key); in check_booleans()
88 rc = sepol_bool_query(avc->handle, in check_booleans()
89 avc->policydb, in check_booleans()
101 rc = sepol_bool_set(avc->handle, in check_booleans()
102 avc->policydb, in check_booleans()
112 rc = sepol_compute_av_reason(avc->ssid, avc->tsid, avc->tclass, in check_booleans()
113 avc->av, &avd, &reason); in check_booleans()
127 rc = sepol_bool_set(avc->handle, in check_booleans()
128 avc->policydb, key, in check_booleans()
168 if (! avc) in finish()
178 sepol_policydb_free(avc->policydb); in finish()
179 sepol_handle_destroy(avc->handle); in finish()
180 free(avc); in finish()
181 avc = NULL; in finish()
232 avc = calloc(sizeof(struct avc_t), 1); in __policy_init()
233 if (!avc) { in __policy_init()
243 sepol_policydb_create(&avc->policydb)) { in __policy_init()
251 if (sepol_policydb_read(avc->policydb, pf)) { in __policy_init()
259 sepol_set_policydb(&avc->policydb->p); in __policy_init()
260 avc->handle = sepol_handle_create(); in __policy_init()
262 sepol_msg_set_callback(avc->handle, NULL, NULL); in __policy_init()
264 rc = sepol_bool_count(avc->handle, in __policy_init()
265 avc->policydb, &cnt); in __policy_init()
277 sepol_bool_iterate(avc->handle, avc->policydb, in __policy_init()
295 if (avc) { in init()
336 if (!avc) in analyze()
385 avc->ssid = ssid; in analyze()
386 avc->tsid = tsid; in analyze()
387 avc->tclass = tclass; in analyze()
388 avc->av = av; in analyze()