• Home
  • Raw
  • Download

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()
223 avc = calloc(sizeof(struct avc_t), 1); in __policy_init()
224 if (!avc) { in __policy_init()
234 sepol_policydb_create(&avc->policydb)) { in __policy_init()
241 if (sepol_policydb_read(avc->policydb, pf)) { in __policy_init()
249 sepol_set_policydb(&avc->policydb->p); in __policy_init()
250 avc->handle = sepol_handle_create(); in __policy_init()
252 sepol_msg_set_callback(avc->handle, NULL, NULL); in __policy_init()
254 rc = sepol_bool_count(avc->handle, in __policy_init()
255 avc->policydb, &cnt); in __policy_init()
267 sepol_bool_iterate(avc->handle, avc->policydb, in __policy_init()
283 if (avc){ in __policy_init()
284 if (avc->handle) in __policy_init()
285 sepol_handle_destroy(avc->handle); in __policy_init()
286 if (avc->policydb) in __policy_init()
287 sepol_policydb_free(avc->policydb); in __policy_init()
288 free(avc); in __policy_init()
300 if (avc) { in init()
341 if (!avc) in analyze()
390 avc->ssid = ssid; in analyze()
391 avc->tsid = tsid; in analyze()
392 avc->tclass = tclass; in analyze()
393 avc->av = av; in analyze()