Home
last modified time | relevance | path

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

/external/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()
/external/selinux/libsepol/src/
Davrule_block.c176 decl = p->decl_val_to_struct[scope->decl_ids[i] - 1]; in is_id_enabled()
182 decl = p->decl_val_to_struct[scope->decl_ids[len-1] - 1]; in is_id_enabled()
Dlink.c1814 state->base->decl_val_to_struct[state->next_decl_id - 1] = in copy_avrule_block()
2382 free(state->base->decl_val_to_struct); in prepare_base()
2383 if ((state->base->decl_val_to_struct = in prepare_base()
2385 sizeof(*(state->base->decl_val_to_struct)))) == NULL) { in prepare_base()
2400 state->base->decl_val_to_struct[decl->decl_id - 1] = in prepare_base()
Dpolicydb.c860 p->decl_val_to_struct = NULL; in policydb_init()
1151 free(p->decl_val_to_struct); in policydb_index_decls()
1160 p->decl_val_to_struct = in policydb_index_decls()
1161 calloc(num_decls, sizeof(*(p->decl_val_to_struct))); in policydb_index_decls()
1162 if (!p->decl_val_to_struct) { in policydb_index_decls()
1173 if (p->decl_val_to_struct[decl->decl_id - 1] != NULL) { in policydb_index_decls()
1177 p->decl_val_to_struct[decl->decl_id - 1] = decl; in policydb_index_decls()
1483 free(p->decl_val_to_struct); in policydb_destroy()
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h559 avrule_decl_t **decl_val_to_struct; member