Searched refs:p_bools (Results 1 – 16 of 16) sorted by relevance
/third_party/selinux/libsepol/src/ |
D | booleans.c | 31 datum = hashtab_search(policydb->p_bools.table, name); in bool_update() 111 *response = policydb->p_bools.nprim; in sepol_bool_count() 134 *response = (hashtab_search(policydb->p_bools.table, name) != NULL); in sepol_bool_exists() 155 booldatum = hashtab_search(policydb->p_bools.table, name); in sepol_bool_query() 185 unsigned int nbools = policydb->p_bools.nprim; in sepol_bool_iterate()
|
D | conditional.c | 525 calloc(p->p_bools.nprim, sizeof(cond_bool_datum_t *)); in cond_init_bool_indexes() 548 if (!booldatum->s.value || booldatum->s.value > p->p_bools.nprim) in cond_index_bool() 740 if (expr->bool > p->p_bools.nprim) { in expr_isvalid()
|
D | policydb_validate.c | 71 if (validate_init(&flavors[SYM_BOOLS], p->p_bool_val_to_name, p->p_bools.nprim)) in validate_array_init() 714 for (i = 0; i < p->p_bools.nprim; i++) { in validate_datum_array_gaps() 759 if (hashtab_map(p->p_bools.table, validate_bool_datum_wrapper, &margs)) in validate_datum_array_entries()
|
D | link.c | 611 base_bool = hashtab_search(state->base->p_bools.table, id); in bool_copy_callback() 624 new_bool->s.value = state->base->p_bools.nprim + 1; in bool_copy_callback() 626 ret = hashtab_insert(state->base->p_bools.table, in bool_copy_callback() 632 state->base->p_bools.nprim++; in bool_copy_callback()
|
D | expand.c | 1142 state->out->p_bools.nprim++; in bool_copy_callback() 1143 new_bool->s.value = state->out->p_bools.nprim; in bool_copy_callback() 1145 ret = hashtab_insert(state->out->p_bools.table, in bool_copy_callback() 3018 state.boolmap = (uint32_t *)calloc(state.base->p_bools.nprim, sizeof(uint32_t)); in expand_module() 3103 if (hashtab_map(state.base->p_bools.table, bool_copy_callback, &state)) in expand_module()
|
D | policydb.c | 1174 calloc(p->p_bools.nprim, sizeof(char *)); in policydb_index_bools() 1177 if (hashtab_map(p->p_bools.table, cond_index_bool, p)) in policydb_index_bools() 1234 p->p_bools.nprim); in policydb_index_others()
|
D | write.c | 2361 if (p->p_bools.nprim) in policydb_write()
|
D | kernel_to_conf.c | 1321 rc = hashtab_map(pdb->p_bools.table, map_boolean_to_strs, strs); in write_boolean_decl_rules_to_conf()
|
D | kernel_to_cil.c | 1338 rc = hashtab_map(pdb->p_bools.table, map_boolean_to_strs, strs); in write_boolean_decl_rules_to_cil()
|
/third_party/selinux/libsepol/tests/ |
D | test-linker-cond-map.c | 83 b = hashtab_search(p->p_bools.table, bool); in test_bool_state()
|
/third_party/selinux/checkpolicy/test/ |
D | dispol.c | 185 for (i = 0; i < p->p_bools.nprim; i++) { in display_bools() 267 bool = hashtab_search(p->p_bools.table, name); in change_bool()
|
D | dismod.c | 388 for (i = 0; i < p->p_bools.nprim; i++) { in display_bools() 603 bool = hashtab_search(p->p_bools.table, name);
|
/third_party/selinux/checkpolicy/ |
D | checkpolicy.c | 301 for (i = 0; i < policydbp->p_bools.nprim; i++) { in display_bools() 359 bool = hashtab_search(policydbp->p_bools.table, name); in change_bool()
|
D | policy_define.c | 4118 (cond_bool_datum_t *) hashtab_search(policydbp->p_bools. in define_cond_expr()
|
/third_party/selinux/libsepol/include/sepol/policydb/ |
D | policydb.h | 530 #define p_bools symtab[SYM_BOOLS] macro
|
/third_party/selinux/libsepol/cil/src/ |
D | cil_binary.c | 2118 cond_bool_datum_t *sepol_bool = hashtab_search(pdb->p_bools.table, key); in __cil_cond_item_to_sepol_expr() 4175 if (bool->s.value < 1 || bool->s.value > pdb->p_bools.nprim) { in __cil_bool_val_array_insert() 4248 policydb->p_bool_val_to_name = cil_malloc(sizeof(char *) * policydb->p_bools.nprim); in __cil_policydb_val_arrays_create() 4249 policydb->bool_val_to_struct = cil_malloc(sizeof(cond_bool_datum_t *) * policydb->p_bools.nprim); in __cil_policydb_val_arrays_create() 4250 rc = hashtab_map(policydb->p_bools.table, &__cil_bool_val_array_insert, policydb); in __cil_policydb_val_arrays_create()
|