Home
last modified time | relevance | path

Searched refs:sym_val_to_name (Results 1 – 11 of 11) sorted by relevance

/external/selinux/libsepol/tests/
Dtest-common.c62 CU_ASSERT(p->sym_val_to_name[SYM_COMMONS][d->s.value - 1] == (char *)key); in common_test_index()
71 CU_ASSERT(p->sym_val_to_name[SYM_CLASSES][d->s.value - 1] == (char *)key); in class_test_index()
81 CU_ASSERT(p->sym_val_to_name[SYM_ROLES][d->s.value - 1] == (char *)key); in role_test_index()
94 CU_ASSERT(p->sym_val_to_name[SYM_TYPES][d->s.value - 1] == (char *)key); in type_test_index()
105 CU_ASSERT(p->sym_val_to_name[SYM_USERS][d->s.value - 1] == (char *)key); in user_test_index()
115 CU_ASSERT(p->sym_val_to_name[SYM_BOOLS][d->s.value - 1] == (char *)key); in cond_test_index()
125 CU_ASSERT(p->sym_val_to_name[SYM_LEVELS][d->level->sens - 1] == (char *)key); in level_test_index()
134 CU_ASSERT(p->sym_val_to_name[SYM_CATS][d->s.value - 1] == (char *)key); in cat_test_index()
205 if (strcmp(p->sym_val_to_name[SYM_TYPES][i], types[j]) == 0) { in test_role_type_set()
211 printf("\nRole %s had type %s not in types array\n", id, p->sym_val_to_name[SYM_TYPES][i]); in test_role_type_set()
[all …]
Dtest-linker-cond-map.c72 CU_ASSERT(strcmp(p->sym_val_to_name[SYM_BOOLS][expr->bool - 1], bools[i].bool) == 0); in test_cond_expr_mapping()
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h514 char **sym_val_to_name[SYM_NUM]; member
515 #define p_common_val_to_name sym_val_to_name[SYM_COMMONS]
516 #define p_class_val_to_name sym_val_to_name[SYM_CLASSES]
517 #define p_role_val_to_name sym_val_to_name[SYM_ROLES]
518 #define p_type_val_to_name sym_val_to_name[SYM_TYPES]
519 #define p_user_val_to_name sym_val_to_name[SYM_USERS]
520 #define p_bool_val_to_name sym_val_to_name[SYM_BOOLS]
521 #define p_sens_val_to_name sym_val_to_name[SYM_LEVELS]
522 #define p_cat_val_to_name sym_val_to_name[SYM_CATS]
/external/selinux/libsepol/src/
Dusers.c238 tmp_ptr = realloc(policydb->sym_val_to_name[SYM_USERS], in sepol_user_modify()
243 policydb->sym_val_to_name[SYM_USERS] = tmp_ptr; in sepol_user_modify()
Dpolicydb.c738 p->sym_val_to_name[i] = NULL; in policydb_init()
1090 free(p->sym_val_to_name[i]); in policydb_index_others()
1091 p->sym_val_to_name[i] = NULL; in policydb_index_others()
1093 p->sym_val_to_name[i] = (char **) in policydb_index_others()
1095 if (!p->sym_val_to_name[i]) in policydb_index_others()
1307 if (p->sym_val_to_name[i]) in policydb_destroy()
1308 free(p->sym_val_to_name[i]); in policydb_destroy()
3957 if (p->sym_val_to_name[i]) in policydb_reindex_users()
3958 free(p->sym_val_to_name[i]); in policydb_reindex_users()
3965 p->sym_val_to_name[i] = (char **) in policydb_reindex_users()
[all …]
Dlink.c2012 id = pol->sym_val_to_name[i][j]; in is_decl_requires_met()
2125 p->sym_val_to_name[req. in debug_requirements()
2135 p->sym_val_to_name[req. in debug_requirements()
2175 p->sym_val_to_name[req->symbol_type][req->symbol_value - 1]); in print_missing_requirements()
Dmodule_to_cil.c744 char **val_to_name = pdb->sym_val_to_name[type]; in ebitmap_to_cil()
1993 cil_printf("%s ", pdb->sym_val_to_name[SYM_CLASSES][i]); in class_order_to_cil()
3279 key = pdb->sym_val_to_name[sym][i]; in declared_scopes_to_cil()
3346 key = pdb->sym_val_to_name[sym][i]; in required_scopes_to_cil()
/external/selinux/policycoreutils/semodule_deps/
Dsemodule_deps.c172 id = p->sym_val_to_name[i][j]; in generate_requires()
/external/selinux/checkpolicy/test/
Ddismod.c104 char *id = p->sym_val_to_name[symbol_type][symbol_value]; in display_id()
526 p->sym_val_to_name[i][j]); in display_scope_index()
Ddispol.c300 const char *id = p->sym_val_to_name[symbol_type][symbol_value]; in display_id()
/external/selinux/libsepol/
DChangeLog360 * Merged patch to initialize sym_val_to_name arrays from Kevin Carr.