Home
last modified time | relevance | path

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

/external/selinux/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()
145 cond_bool_datum_t *booldatum = NULL; in sepol_bool_query() local
155 booldatum = hashtab_search(policydb->p_bools.table, name); in sepol_bool_query()
156 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 if (p->p_bool_val_to_name[booldatum->s.value - 1] != NULL) in cond_index_bool()
557 p->p_bool_val_to_name[booldatum->s.value - 1] = key; in cond_index_bool()
558 p->bool_val_to_struct[booldatum->s.value - 1] = booldatum; in cond_index_bool()
575 cond_bool_datum_t *booldatum; in cond_read_bool() local
579 booldatum = malloc(sizeof(cond_bool_datum_t)); in cond_read_bool()
580 if (!booldatum) in cond_read_bool()
582 memset(booldatum, 0, sizeof(cond_bool_datum_t)); in cond_read_bool()
[all …]
Dlink.c603 cond_bool_datum_t *booldatum, *base_bool, *new_bool = NULL; in bool_copy_callback() local
607 booldatum = (cond_bool_datum_t *) datum; in bool_copy_callback()
632 base_bool->flags = booldatum->flags; in bool_copy_callback()
633 base_bool->state = booldatum->state; in bool_copy_callback()
634 } else if ((booldatum->flags & COND_BOOL_FLAGS_TUNABLE) != in bool_copy_callback()
653 base_bool->state = booldatum->state; in bool_copy_callback()
656 base_bool->flags = booldatum->flags; in bool_copy_callback()
658 state->cur->map[SYM_BOOLS][booldatum->s.value - 1] = base_bool->s.value; in bool_copy_callback()
Dwrite.c660 cond_bool_datum_t *booldatum; in cond_write_bool() local
667 booldatum = (cond_bool_datum_t *) datum; in cond_write_bool()
671 buf[items++] = cpu_to_le32(booldatum->s.value); in cond_write_bool()
672 buf[items++] = cpu_to_le32(booldatum->state); in cond_write_bool()
683 buf[0] = cpu_to_le32(booldatum->flags); in cond_write_bool()
Dexpand.c2863 cond_bool_datum_t *booldatum; in discard_tunables() local
2873 booldatum = pol->bool_val_to_struct[cur_expr->bool - 1]; in discard_tunables()
2874 if (booldatum->flags & COND_BOOL_FLAGS_TUNABLE) in discard_tunables()
2875 tmp[tunables++] = booldatum; in discard_tunables()
/external/selinux/checkpolicy/
Dmodule_compiler.c984 cond_bool_datum_t *booldatum = NULL; in require_bool_tunable() local
994 if ((booldatum = calloc(1, sizeof(*booldatum))) == NULL) { in require_bool_tunable()
995 cond_destroy_bool(id, booldatum, NULL); in require_bool_tunable()
1000 booldatum->flags |= COND_BOOL_FLAGS_TUNABLE; in require_bool_tunable()
1002 require_symbol(SYM_BOOLS, id, (hashtab_datum_t *) booldatum, in require_bool_tunable()
1003 &booldatum->s.value, &booldatum->s.value); in require_bool_tunable()
1005 cond_destroy_bool(id, booldatum, NULL); in require_bool_tunable()