/external/libsepol/tests/ |
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_DECL, decls, 1) [all...] |
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_b"))->decl_id [all...] |
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");
|
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]);
|
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/libsepol/include/sepol/policydb/ |
policydb.h | 336 #define SYM_TYPES 3 372 #define p_types_scope scope[SYM_TYPES] 466 #define p_types symtab[SYM_TYPES] 477 #define p_type_val_to_name sym_val_to_name[SYM_TYPES]
|
/external/checkpolicy/test/ |
dispol.c | 338 display_id(p, fp, SYM_TYPES, i - 1, ""); 351 display_id(p, fp, SYM_TYPES, rt->type - 1, ""); 364 display_id(p, fp, SYM_TYPES, ft->stype - 1, ""); 365 display_id(p, fp, SYM_TYPES, ft->ttype - 1, ""); 367 display_id(p, fp, SYM_TYPES, ft->otype - 1, "");
|
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/libsepol/src/ |
link.c | 479 state->cur->map[SYM_TYPES][type->s.value - 1] = base_type->s.value; 720 bounds_val = state->cur->map[SYM_TYPES][type->bounds - 1]; 876 mod->map[SYM_TYPES][primval - 1]); 877 assert(mod->map[SYM_TYPES][type->s.value - 1] == 895 mod->map[SYM_TYPES][type->s.value - 1] = base_type->primary; 916 assert(mod->map[SYM_TYPES][i]); 918 (&dst->types, mod->map[SYM_TYPES][i] - 1, 1)) { 925 assert(mod->map[SYM_TYPES][i]); 927 (&dst->negset, mod->map[SYM_TYPES][i] - 1, 1)) { 1143 assert(mod->map[SYM_TYPES][i]) [all...] |
expand.c | 91 if (!is_id_enabled(id, state->base, SYM_TYPES)) { 159 if (!is_id_enabled(id, state->base, SYM_TYPES)) { 484 if (!is_id_enabled((char *)key, state->base, SYM_TYPES)) 595 state->base, SYM_TYPES)) { [all...] |
write.c | [all...] |
/external/checkpolicy/ |
module_compiler.c | 336 retval = declare_symbol(SYM_TYPES, id, typdatum, &value, &value); 651 if (symbol_type == SYM_TYPES) { 659 [SYM_TYPES]. 956 require_symbol(SYM_TYPES, id, (hashtab_datum_t *) type, [all...] |
policy_define.c | 215 if (!is_id_in_scope(SYM_TYPES, type)) { 1026 ret = declare_symbol(SYM_TYPES, id, aliasdatum, 1049 aliasdatum = hashtab_search(policydbp->symtab[SYM_TYPES].table, id); 1087 if (!is_id_in_scope(SYM_TYPES, id)) { 1119 if (!is_id_in_scope(SYM_TYPES, id)) { 1132 if (!is_id_in_scope(SYM_TYPES, id)) { 1169 if (!is_id_in_scope(SYM_TYPES, bounds_id)) { 1180 if (!is_id_in_scope(SYM_TYPES, type_id)) { 1282 if (!is_id_in_scope(SYM_TYPES, id)) { 1355 if (!is_id_in_scope(SYM_TYPES, id)) [all...] |