Home
last modified time | relevance | path

Searched refs:booldatum (Results 1 – 6 of 6) sorted by relevance

/external/libsepol/src/
Dbooleans.c60 cond_bool_datum_t *booldatum = policydb->bool_val_to_struct[bool_idx]; in bool_to_record() local
61 int value = booldatum->state; in bool_to_record()
146 cond_bool_datum_t *booldatum = NULL; in sepol_bool_query() local
156 booldatum = hashtab_search(policydb->p_bools.table, name); in sepol_bool_query()
157 if (!booldatum) { in sepol_bool_query()
163 booldatum->s.value - 1, response) < 0) in sepol_bool_query()
Dconditional.c546 cond_bool_datum_t *booldatum; in cond_index_bool() local
548 booldatum = datum; in cond_index_bool()
551 if (!booldatum->s.value || booldatum->s.value > p->p_bools.nprim) in cond_index_bool()
554 p->p_bool_val_to_name[booldatum->s.value - 1] = key; in cond_index_bool()
555 p->bool_val_to_struct[booldatum->s.value - 1] = booldatum; in cond_index_bool()
572 cond_bool_datum_t *booldatum; in cond_read_bool() local
576 booldatum = malloc(sizeof(cond_bool_datum_t)); in cond_read_bool()
577 if (!booldatum) in cond_read_bool()
579 memset(booldatum, 0, sizeof(cond_bool_datum_t)); in cond_read_bool()
585 booldatum->s.value = le32_to_cpu(buf[0]); in cond_read_bool()
[all …]
Dlink.c596 cond_bool_datum_t *booldatum, *base_bool, *new_bool = NULL; in bool_copy_callback() local
600 booldatum = (cond_bool_datum_t *) datum; in bool_copy_callback()
625 base_bool->flags = booldatum->flags; in bool_copy_callback()
626 } else if ((booldatum->flags & COND_BOOL_FLAGS_TUNABLE) != in bool_copy_callback()
645 base_bool->state = booldatum->state; in bool_copy_callback()
648 base_bool->flags = booldatum->flags; in bool_copy_callback()
650 state->cur->map[SYM_BOOLS][booldatum->s.value - 1] = base_bool->s.value; in bool_copy_callback()
Dwrite.c605 cond_bool_datum_t *booldatum; in cond_write_bool() local
612 booldatum = (cond_bool_datum_t *) datum; in cond_write_bool()
616 buf[items++] = cpu_to_le32(booldatum->s.value); in cond_write_bool()
617 buf[items++] = cpu_to_le32(booldatum->state); in cond_write_bool()
628 buf[0] = cpu_to_le32(booldatum->flags); in cond_write_bool()
Dexpand.c2754 cond_bool_datum_t *booldatum; in discard_tunables() local
2764 booldatum = pol->bool_val_to_struct[cur_expr->bool - 1]; in discard_tunables()
2765 if (booldatum->flags & COND_BOOL_FLAGS_TUNABLE) in discard_tunables()
2766 tmp[tunables++] = booldatum; in discard_tunables()
/external/checkpolicy/
Dmodule_compiler.c1051 cond_bool_datum_t *booldatum = NULL; in require_bool_tunable() local
1061 if ((booldatum = calloc(1, sizeof(*booldatum))) == NULL) { in require_bool_tunable()
1062 cond_destroy_bool(id, booldatum, NULL); in require_bool_tunable()
1067 booldatum->flags |= COND_BOOL_FLAGS_TUNABLE; in require_bool_tunable()
1069 require_symbol(SYM_BOOLS, id, (hashtab_datum_t *) booldatum, in require_bool_tunable()
1070 &booldatum->s.value, &booldatum->s.value); in require_bool_tunable()
1072 cond_destroy_bool(id, booldatum, NULL); in require_bool_tunable()