Home
last modified time | relevance | path

Searched refs:p_bools (Results 1 – 14 of 14) sorted by relevance

/external/selinux/libsepol/src/
Dbooleans.c31 hashtab_search(policydb->p_bools.table, name); in bool_update()
111 *response = policydb->p_bools.nprim; in sepol_bool_count()
135 *response = (hashtab_search(policydb->p_bools.table, name) != NULL); in sepol_bool_exists()
156 booldatum = hashtab_search(policydb->p_bools.table, name); in sepol_bool_query()
185 unsigned int nbools = policydb->p_bools.nprim; in sepol_bool_iterate()
Dgenbools.c96 datum = hashtab_search(policydb->p_bools.table, name);
127 hashtab_search(policydb->p_bools.table,
224 datum = hashtab_search(policydb.p_bools.table, names[i]);
Dconditional.c528 malloc(p->p_bools.nprim * sizeof(cond_bool_datum_t *)); in cond_init_bool_indexes()
551 if (!booldatum->s.value || booldatum->s.value > p->p_bools.nprim) in cond_index_bool()
755 if (expr->bool > p->p_bools.nprim) { in expr_isvalid()
Dlink.c609 base_bool = hashtab_search(state->base->p_bools.table, id); in bool_copy_callback()
622 new_bool->s.value = state->base->p_bools.nprim + 1; in bool_copy_callback()
624 ret = hashtab_insert(state->base->p_bools.table, in bool_copy_callback()
630 state->base->p_bools.nprim++; in bool_copy_callback()
Dexpand.c1105 state->out->p_bools.nprim++; in bool_copy_callback()
1106 new_bool->s.value = state->out->p_bools.nprim; in bool_copy_callback()
1108 ret = hashtab_insert(state->out->p_bools.table, in bool_copy_callback()
2974 state.boolmap = (uint32_t *)calloc(state.base->p_bools.nprim, sizeof(uint32_t)); in expand_module()
3063 if (hashtab_map(state.base->p_bools.table, bool_copy_callback, &state)) in expand_module()
Dpolicydb.c1002 malloc(p->p_bools.nprim * sizeof(char *)); in policydb_index_bools()
1005 if (hashtab_map(p->p_bools.table, cond_index_bool, p)) in policydb_index_bools()
1054 p->p_bools.nprim); in policydb_index_others()
Dwrite.c2110 if (p->p_bools.nprim) in policydb_write()
/external/selinux/libsepol/tests/
Dtest-linker-cond-map.c82 b = hashtab_search(p->p_bools.table, bool); in test_bool_state()
/external/selinux/checkpolicy/test/
Ddispol.c185 for (i = 0; i < p->p_bools.nprim; i++) { in display_bools()
267 bool = hashtab_search(p->p_bools.table, name); in change_bool()
Ddismod.c364 for (i = 0; i < p->p_bools.nprim; i++) { in display_bools()
579 bool = hashtab_search(p->p_bools.table, name);
/external/selinux/checkpolicy/
Dcheckpolicy.c297 for (i = 0; i < policydbp->p_bools.nprim; i++) { in display_bools()
355 bool = hashtab_search(policydbp->p_bools.table, name); in change_bool()
Dpolicy_define.c3995 (cond_bool_datum_t *) hashtab_search(policydbp->p_bools. in define_cond_expr()
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h509 #define p_bools symtab[SYM_BOOLS] macro
/external/selinux/libsepol/cil/src/
Dcil_binary.c1905 cond_bool_datum_t *sepol_bool = hashtab_search(pdb->p_bools.table, key); in __cil_cond_item_to_sepol_expr()
3753 if (bool->s.value < 1 || bool->s.value > pdb->p_bools.nprim) { in __cil_bool_val_array_insert()
3826 policydb->p_bool_val_to_name = cil_malloc(sizeof(char *) * policydb->p_bools.nprim); in __cil_policydb_val_arrays_create()
3827 policydb->bool_val_to_struct = cil_malloc(sizeof(cond_bool_datum_t *) * policydb->p_bools.nprim); in __cil_policydb_val_arrays_create()
3828 rc = hashtab_map(policydb->p_bools.table, &__cil_bool_val_array_insert, policydb); in __cil_policydb_val_arrays_create()