/external/selinux/libsepol/tests/ |
H A D | test-linker-types.c | 136 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; 137 test_sym_presence(base, "g_b_type_1", SYM_TYPES, SCOPE_DECL, decls, 1); 140 test_sym_presence(base, "g_b_attr_1", SYM_TYPES, SCOPE_DECL, decls, 1); 145 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_b"))->decl_id; 146 test_sym_presence(base, "o1_b_type_1", SYM_TYPES, SCOPE_DECL, decls, 1); 149 test_sym_presence(base, "o1_b_attr_1", SYM_TYPES, SCOPE_DECL, decls, 1); 154 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; 155 test_sym_presence(base, "g_b_alias_1", SYM_TYPES, SCOPE_DECL, decls, 1); 157 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_o6_b"))->decl_id; 158 test_sym_presence(base, "g_b_alias_2", SYM_TYPES, SCOPE_DEC [all...] |
H A D | test-linker-roles.c | 81 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; 90 decl = test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_b"); 112 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m1"))->decl_id; 121 decl = test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_m1"); 134 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; 135 decls[1] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m1"))->decl_id; 145 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; 146 decls[1] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m1"))->decl_id; 147 decls[2] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m2"))->decl_id; 158 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_ [all...] |
H A D | test-linker-cond-map.c | 97 d = test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"); 107 d = test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_b"); 125 d = test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m1"); 135 d = test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_m1"); 145 d = test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m2");
|
H A D | test-common.c | 94 CU_ASSERT(p->sym_val_to_name[SYM_TYPES][d->s.value - 1] == (char *)key); 205 if (strcmp(p->sym_val_to_name[SYM_TYPES][i], types[j]) == 0) { 211 printf("\nRole %s had type %s not in types array\n", id, p->sym_val_to_name[SYM_TYPES][i]); 248 if (strcmp(p->sym_val_to_name[SYM_TYPES][i], types[j]) == 0) { 254 printf("\nattr %s had type %s not in types array\n", id, p->sym_val_to_name[SYM_TYPES][i]);
|
H A D | test-deps.c | 173 decl = test_find_decl_by_sym(base, SYM_TYPES, decl_type); 252 decl = test_find_decl_by_sym(base, SYM_TYPES, decl_type);
|
/external/selinux/checkpolicy/test/ |
H A D | dispol.c | 364 display_id(p, fp, SYM_TYPES, i - 1, ""); 377 display_id(p, fp, SYM_TYPES, rt->type - 1, ""); 390 display_id(p, fp, SYM_TYPES, ft->stype - 1, ""); 391 display_id(p, fp, SYM_TYPES, ft->ttype - 1, ""); 393 display_id(p, fp, SYM_TYPES, ft->otype - 1, "");
|
H A D | dismod.c | 159 display_id(policy, fp, SYM_TYPES, i, ""); 166 display_id(policy, fp, SYM_TYPES, i, "-"); 284 display_id(policy, fp, SYM_TYPES, avrule->perms->data - 1, ""); 302 display_id(&policydb, fp, SYM_TYPES, type->s.value - 1, ""); 321 display_id(&policydb, fp, SYM_TYPES, i, ""); 327 display_id(&policydb, fp, SYM_TYPES, type->s.value - 1, ""); 491 display_id(p, fp, SYM_TYPES, tr->otype - 1, "");
|
/external/selinux/libsepol/include/sepol/policydb/ |
H A D | policydb.h | 373 #define SYM_TYPES 3 macro 410 #define p_types_scope scope[SYM_TYPES] 504 #define p_types symtab[SYM_TYPES] 515 #define p_type_val_to_name sym_val_to_name[SYM_TYPES]
|
/external/selinux/libsepol/src/ |
H A D | link.c | 521 state->cur->map[SYM_TYPES][type->s.value - 1] = base_type->s.value; 771 bounds_val = state->cur->map[SYM_TYPES][type->bounds - 1]; 927 mod->map[SYM_TYPES][primval - 1]); 928 assert(mod->map[SYM_TYPES][type->s.value - 1] == 946 mod->map[SYM_TYPES][type->s.value - 1] = base_type->primary; 967 assert(mod->map[SYM_TYPES][i]); 969 (&dst->types, mod->map[SYM_TYPES][i] - 1, 1)) { 976 assert(mod->map[SYM_TYPES][i]); 978 (&dst->negset, mod->map[SYM_TYPES][i] - 1, 1)) { 1194 assert(mod->map[SYM_TYPES][ [all...] |
H A D | expand.c | 91 if (!is_id_enabled(id, state->base, SYM_TYPES)) { 159 if (!is_id_enabled(id, state->base, SYM_TYPES)) { 539 if (!is_id_enabled((char *)key, state->base, SYM_TYPES)) 650 state->base, SYM_TYPES)) {
|
H A D | module_to_cil.c | 325 scope = hashtab_search(pdb->scope[SYM_TYPES].table, key); 2059 if (is_id_in_scope(pdb, decl_stack, types[i], SYM_TYPES)) { 2156 ebitmap_to_cil(pdb, &type->types, SYM_TYPES);
|
H A D | write.c | 2076 if (i == SYM_TYPES &&
|
/external/selinux/checkpolicy/ |
H A D | module_compiler.c | 337 retval = declare_symbol(SYM_TYPES, id, typdatum, &value, &value); 652 if (symbol_type == SYM_TYPES) { 660 [SYM_TYPES]. 957 require_symbol(SYM_TYPES, id, (hashtab_datum_t *) type,
|
H A D | policy_define.c | 220 if (!is_id_in_scope(SYM_TYPES, type)) { 1159 ret = declare_symbol(SYM_TYPES, id, aliasdatum, 1182 aliasdatum = hashtab_search(policydbp->symtab[SYM_TYPES].table, id); 1220 if (!is_id_in_scope(SYM_TYPES, id)) { 1252 if (!is_id_in_scope(SYM_TYPES, id)) { 1265 if (!is_id_in_scope(SYM_TYPES, id)) { 1302 if (!is_id_in_scope(SYM_TYPES, bounds_id)) { 1313 if (!is_id_in_scope(SYM_TYPES, type_id)) { 1415 if (!is_id_in_scope(SYM_TYPES, id)) { 1488 if (!is_id_in_scope(SYM_TYPES, i [all...] |
/external/selinux/policycoreutils/semodule_deps/ |
H A D | semodule_deps.c | 166 if (!(i == SYM_TYPES || i == SYM_BOOLS))
|
/external/selinux/libsepol/cil/src/ |
H A D | cil_binary.c | 504 rc = symtab_insert(pdb, SYM_TYPES, key, sepol_type, SCOPE_DECL, 0, &value); 557 rc = symtab_insert(pdb, SYM_TYPES, key, sepol_alias, SCOPE_DECL, 0, NULL); 611 rc = symtab_insert(pdb, SYM_TYPES, key, sepol_attr, SCOPE_DECL, 0, &value);
|