Searched refs:SYM_TYPES (Results 1 - 16 of 16) sorted by relevance

/external/selinux/libsepol/tests/
H A Dtest-linker-types.c136 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 Dtest-linker-roles.c81 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 Dtest-linker-cond-map.c97 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 Dtest-common.c94 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 Dtest-deps.c173 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 Ddispol.c364 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 Ddismod.c159 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 Dpolicydb.h373 #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 Dlink.c521 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 Dexpand.c91 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 Dmodule_to_cil.c325 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 Dwrite.c2076 if (i == SYM_TYPES &&
/external/selinux/checkpolicy/
H A Dmodule_compiler.c337 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 Dpolicy_define.c220 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 Dsemodule_deps.c166 if (!(i == SYM_TYPES || i == SYM_BOOLS))
/external/selinux/libsepol/cil/src/
H A Dcil_binary.c504 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);

Completed in 1367 milliseconds