Searched refs:booldatum (Results 1 – 6 of 6) sorted by relevance
/external/selinux/libsepol/src/ |
D | booleans.c | 60 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()
|
D | conditional.c | 546 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 …]
|
D | link.c | 603 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()
|
D | write.c | 638 cond_bool_datum_t *booldatum; in cond_write_bool() local 645 booldatum = (cond_bool_datum_t *) datum; in cond_write_bool() 649 buf[items++] = cpu_to_le32(booldatum->s.value); in cond_write_bool() 650 buf[items++] = cpu_to_le32(booldatum->state); in cond_write_bool() 661 buf[0] = cpu_to_le32(booldatum->flags); in cond_write_bool()
|
D | expand.c | 2851 cond_bool_datum_t *booldatum; in discard_tunables() local 2861 booldatum = pol->bool_val_to_struct[cur_expr->bool - 1]; in discard_tunables() 2862 if (booldatum->flags & COND_BOOL_FLAGS_TUNABLE) in discard_tunables() 2863 tmp[tunables++] = booldatum; in discard_tunables()
|
/external/selinux/checkpolicy/ |
D | module_compiler.c | 1052 cond_bool_datum_t *booldatum = NULL; in require_bool_tunable() local 1062 if ((booldatum = calloc(1, sizeof(*booldatum))) == NULL) { in require_bool_tunable() 1063 cond_destroy_bool(id, booldatum, NULL); in require_bool_tunable() 1068 booldatum->flags |= COND_BOOL_FLAGS_TUNABLE; in require_bool_tunable() 1070 require_symbol(SYM_BOOLS, id, (hashtab_datum_t *) booldatum, in require_bool_tunable() 1071 &booldatum->s.value, &booldatum->s.value); in require_bool_tunable() 1073 cond_destroy_bool(id, booldatum, NULL); in require_bool_tunable()
|