Home
last modified time | relevance | path

Searched refs:decl_id (Results 1 – 13 of 13) sorted by relevance

/external/selinux/libsepol/tests/
Dtest-linker-roles.c81 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; in base_role_tests()
91 decls[0] = decl->decl_id; in base_role_tests()
112 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m1"))->decl_id; in module_role_tests()
122 decls[0] = decl->decl_id; in module_role_tests()
134 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; in module_role_tests()
135 decls[1] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m1"))->decl_id; in module_role_tests()
145 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; in module_role_tests()
146 decls[1] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m1"))->decl_id; in module_role_tests()
147 decls[2] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m2"))->decl_id; in module_role_tests()
158 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_b"))->decl_id; in module_role_tests()
[all …]
Dtest-linker-types.c136 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; in base_type_tests()
145 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_b"))->decl_id; in base_type_tests()
154 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; in base_type_tests()
157 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_o6_b"))->decl_id; in base_type_tests()
180 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m1"))->decl_id; in module_type_tests()
190 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_m1"))->decl_id; in module_type_tests()
200 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; in module_type_tests()
206 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; in module_type_tests()
209 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_m1"))->decl_id; in module_type_tests()
214 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; in module_type_tests()
[all …]
Dtest-linker-cond-map.c98 decls[0] = d->decl_id; in base_cond_tests()
108 decls[0] = d->decl_id; in base_cond_tests()
126 decls[0] = d->decl_id; in module_cond_tests()
136 decls[0] = d->decl_id; in module_cond_tests()
146 decls[0] = d->decl_id; in module_cond_tests()
Dtest-common.c239 printf("could not find attr %s in decl %d\n", id, decl->decl_id); in test_attr_types()
/external/selinux/libsepol/include/sepol/policydb/
Davrule_block.h30 extern avrule_decl_t *avrule_decl_create(uint32_t decl_id);
33 extern avrule_decl_t *get_avrule_decl(policydb_t * p, uint32_t decl_id);
Dpolicydb.h434 uint32_t decl_id; member
/external/selinux/libsepol/src/
Davrule_block.c53 avrule_decl_t *avrule_decl_create(uint32_t decl_id) in avrule_decl_create() argument
60 decl->decl_id = decl_id; in avrule_decl_create()
Dlink.c1809 module->avdecl_map[decl->decl_id] = new_decl->decl_id; in copy_avrule_block()
2109 mod_name, cur->branch_list->decl_id, in debug_requirements()
2115 mod_name, cur->branch_list->decl_id, in debug_requirements()
2123 mod_name, cur->branch_list->decl_id, in debug_requirements()
2133 mod_name, cur->branch_list->decl_id, in debug_requirements()
2227 mod_name, decl->decl_id); in enable_avrules()
2328 if (decl->decl_id > num_decls) { in prepare_module()
2329 num_decls = decl->decl_id; in prepare_module()
2361 if (decl->decl_id > state->next_decl_id) { in prepare_base()
2362 state->next_decl_id = decl->decl_id; in prepare_base()
[all …]
Dmodule_to_cil.c370 if (decl->decl_id > max_decl_id) { in typealias_list_create()
371 max_decl_id = decl->decl_id; in typealias_list_create()
487 if (scope->decl_ids[j] == decl->decl_id) { in is_id_in_scope_with_start()
3232 struct list *alias_list = typealias_lists[decl->decl_id]; in typealiases_to_cil()
3350 if (scope_datum->decl_ids[j] == decl->decl_id) { in required_scopes_to_cil()
3569 cil_println(*indent, "(optional %s_optional_%i", pdb->name, decl->decl_id); in module_block_to_cil()
Dpolicydb.c1034 p->decl_val_to_struct[decl->decl_id - 1] = decl; in policydb_index_decls()
3455 decl->decl_id = le32_to_cpu(buf[0]); in avrule_decl_read()
Dwrite.c1798 buf[0] = cpu_to_le32(decl->decl_id); in avrule_decl_write()
/external/selinux/checkpolicy/
Dmodule_compiler.c139 SCOPE_DECL, decl->decl_id, dest_value); in declare_symbol()
634 SCOPE_REQ, decl->decl_id, dest_value); in require_symbol()
1235 if (scope->decl_ids[i] == decl->decl_id) { in is_scope_in_stack()
1433 block->branch_list->decl_id == next_decl_id); in begin_optional()
1473 decl->next == NULL && decl->decl_id == next_decl_id); in begin_optional_else()
/external/selinux/checkpolicy/test/
Ddismod.c593 fprintf(out_fp, "decl %u:%s\n", decl->decl_id, in display_avdecl()