Home | History | Annotate | Download | only in src

Lines Matching refs:avc

49 static struct avc_t *avc = NULL;
81 rc = sepol_bool_key_create(avc->handle, name, &key);
87 rc = sepol_bool_query(avc->handle,
88 avc->policydb,
100 rc = sepol_bool_set(avc->handle,
101 avc->policydb,
111 rc = sepol_compute_av_reason(avc->ssid, avc->tsid, avc->tclass,
112 avc->av, &avd, &reason);
126 rc = sepol_bool_set(avc->handle,
127 avc->policydb, key,
167 if (! avc)
177 sepol_policydb_free(avc->policydb);
178 sepol_handle_destroy(avc->handle);
179 free(avc);
180 avc = NULL;
231 avc = calloc(sizeof(struct avc_t), 1);
232 if (!avc) {
242 sepol_policydb_create(&avc->policydb)) {
250 if (sepol_policydb_read(avc->policydb, pf)) {
258 sepol_set_policydb(&avc->policydb->p);
259 avc->handle = sepol_handle_create();
261 sepol_msg_set_callback(avc->handle, NULL, NULL);
263 rc = sepol_bool_count(avc->handle,
264 avc->policydb, &cnt);
276 sepol_bool_iterate(avc->handle, avc->policydb,
294 if (avc) {
335 if (!avc)
384 avc->ssid = ssid;
385 avc->tsid = tsid;
386 avc->tclass = tclass;
387 avc->av = av;
435 "Analyze AVC."},