Home
last modified time | relevance | path

Searched refs:decl_val_to_struct (Results 1 – 6 of 6) sorted by relevance

/third_party/selinux/libsepol/tests/
Dtest-linker-types.c116 type = hashtab_search(p->decl_val_to_struct[decls[i] - 1]->p_types.table, id); in test_type_datum()
151 test_attr_types(base, "o1_b_attr_1", base->decl_val_to_struct[decls[0] - 1], types, 1); in base_type_tests()
196 test_attr_types(base, "o1_m1_attr_1", base->decl_val_to_struct[decls[0] - 1], types, 1); in module_type_tests()
211 test_attr_types(base, "g_b_attr_4", base->decl_val_to_struct[decls[0] - 1], types, 1); in module_type_tests()
Dhelpers.c80 return p->decl_val_to_struct[scope->decl_ids[0] - 1]; in test_find_decl_by_sym()
/third_party/selinux/libsepol/src/
Davrule_block.c177 decl = p->decl_val_to_struct[scope->decl_ids[i] - 1]; in is_id_enabled()
183 decl = p->decl_val_to_struct[scope->decl_ids[len-1] - 1]; in is_id_enabled()
Dlink.c1795 state->base->decl_val_to_struct[state->next_decl_id - 1] = in copy_avrule_block()
2356 free(state->base->decl_val_to_struct); in prepare_base()
2357 if ((state->base->decl_val_to_struct = in prepare_base()
2359 sizeof(*(state->base->decl_val_to_struct)))) == NULL) { in prepare_base()
2374 state->base->decl_val_to_struct[decl->decl_id - 1] = in prepare_base()
Dpolicydb.c886 p->decl_val_to_struct = NULL; in policydb_init()
1176 free(p->decl_val_to_struct); in policydb_index_decls()
1185 p->decl_val_to_struct = in policydb_index_decls()
1186 calloc(num_decls, sizeof(*(p->decl_val_to_struct))); in policydb_index_decls()
1187 if (!p->decl_val_to_struct) { in policydb_index_decls()
1198 if (p->decl_val_to_struct[decl->decl_id - 1] != NULL) { in policydb_index_decls()
1202 p->decl_val_to_struct[decl->decl_id - 1] = decl; in policydb_index_decls()
1504 free(p->decl_val_to_struct); in policydb_destroy()
/third_party/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h561 avrule_decl_t **decl_val_to_struct; member