Home
last modified time | relevance | path

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

/external/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/libsepol/include/sepol/policydb/
Dpolicydb.h473 char **sym_val_to_name[SYM_NUM]; member
474 #define p_common_val_to_name sym_val_to_name[SYM_COMMONS]
475 #define p_class_val_to_name sym_val_to_name[SYM_CLASSES]
476 #define p_role_val_to_name sym_val_to_name[SYM_ROLES]
477 #define p_type_val_to_name sym_val_to_name[SYM_TYPES]
478 #define p_user_val_to_name sym_val_to_name[SYM_USERS]
479 #define p_bool_val_to_name sym_val_to_name[SYM_BOOLS]
480 #define p_sens_val_to_name sym_val_to_name[SYM_LEVELS]
481 #define p_cat_val_to_name sym_val_to_name[SYM_CATS]
/external/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.c659 p->sym_val_to_name[i] = NULL; in policydb_init()
1011 free(p->sym_val_to_name[i]); in policydb_index_others()
1012 p->sym_val_to_name[i] = NULL; in policydb_index_others()
1014 p->sym_val_to_name[i] = (char **) in policydb_index_others()
1016 if (!p->sym_val_to_name[i]) in policydb_index_others()
1228 if (p->sym_val_to_name[i]) in policydb_destroy()
1229 free(p->sym_val_to_name[i]); in policydb_destroy()
3819 if (p->sym_val_to_name[i]) in policydb_reindex_users()
3820 free(p->sym_val_to_name[i]); in policydb_reindex_users()
3827 p->sym_val_to_name[i] = (char **) in policydb_reindex_users()
[all …]
Dlink.c1952 id = pol->sym_val_to_name[i][j]; in is_decl_requires_met()
2068 p->sym_val_to_name[req. in debug_requirements()
2078 p->sym_val_to_name[req. in debug_requirements()
2118 p->sym_val_to_name[req->symbol_type][req->symbol_value - in print_missing_requirements()
/external/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.c325 char *id = p->sym_val_to_name[symbol_type][symbol_value]; in display_id()
/external/libsepol/
DChangeLog265 * Merged patch to initialize sym_val_to_name arrays from Kevin Carr.