Lines Matching refs:avtab_i
269 struct avtab_iter *avtab_i) in get_avtab_allow_rule() argument
273 for (; avtab_i->i < avtab_i->avtab->nslot; (avtab_i->i)++) { in get_avtab_allow_rule()
274 if (avtab_i->cur == nullptr) { in get_avtab_allow_rule()
275 avtab_i->cur = avtab_i->avtab->htable[avtab_i->i]; in get_avtab_allow_rule()
277 for (; avtab_i->cur; avtab_i->cur = (avtab_i->cur)->next) { in get_avtab_allow_rule()
278 if (!((avtab_i->cur)->key.specified & AVTAB_ALLOWED)) continue; in get_avtab_allow_rule()
281 db->p_type_val_to_name[(avtab_i->cur)->key.source_type - 1], in get_avtab_allow_rule()
282 db->p_type_val_to_name[(avtab_i->cur)->key.target_type - 1], in get_avtab_allow_rule()
283 db->p_class_val_to_name[(avtab_i->cur)->key.target_class - 1], in get_avtab_allow_rule()
284 … sepol_av_to_string(db, (avtab_i->cur)->key.target_class, (avtab_i->cur)->datum.data)); in get_avtab_allow_rule()
285 avtab_i->cur = (avtab_i->cur)->next; in get_avtab_allow_rule()
286 if (!(avtab_i->cur)) in get_avtab_allow_rule()
287 (avtab_i->i)++; in get_avtab_allow_rule()
294 avtab_i->cur = nullptr; in get_avtab_allow_rule()
303 struct avtab_iter *avtab_i = static_cast<struct avtab_iter *>(avtab_iterp); in get_allow_rule() local
305 return get_avtab_allow_rule(out, len, db, avtab_i); in get_allow_rule()
335 struct avtab_iter *avtab_i = static_cast<struct avtab_iter *>(avtab_iterp); in destroy_avtab() local
336 free(avtab_i); in destroy_avtab()
394 struct avtab_iter *avtab_i = static_cast<struct avtab_iter *>(avtab_iterp); in destroy_expanded_avtab() local
395 avtab_destroy(avtab_i->avtab); in destroy_expanded_avtab()
396 free(avtab_i->avtab); in destroy_expanded_avtab()
397 free(avtab_i); in destroy_expanded_avtab()