Searched refs:booldatum (Results 1 – 6 of 6) sorted by relevance
/external/selinux/libsepol/src/ |
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 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 …]
|
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() 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()
|
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 | 655 cond_bool_datum_t *booldatum; in cond_write_bool() local 662 booldatum = (cond_bool_datum_t *) datum; in cond_write_bool() 666 buf[items++] = cpu_to_le32(booldatum->s.value); in cond_write_bool() 667 buf[items++] = cpu_to_le32(booldatum->state); in cond_write_bool() 678 buf[0] = cpu_to_le32(booldatum->flags); in cond_write_bool()
|
D | expand.c | 2900 cond_bool_datum_t *booldatum; in discard_tunables() local 2910 booldatum = pol->bool_val_to_struct[cur_expr->bool - 1]; in discard_tunables() 2911 if (booldatum->flags & COND_BOOL_FLAGS_TUNABLE) in discard_tunables() 2912 tmp[tunables++] = booldatum; in discard_tunables()
|
/external/selinux/checkpolicy/ |
D | module_compiler.c | 983 cond_bool_datum_t *booldatum = NULL; in require_bool_tunable() local 993 if ((booldatum = calloc(1, sizeof(*booldatum))) == NULL) { in require_bool_tunable() 994 cond_destroy_bool(id, booldatum, NULL); in require_bool_tunable() 999 booldatum->flags |= COND_BOOL_FLAGS_TUNABLE; in require_bool_tunable() 1001 require_symbol(SYM_BOOLS, id, (hashtab_datum_t *) booldatum, in require_bool_tunable() 1002 &booldatum->s.value, &booldatum->s.value); in require_bool_tunable() 1004 cond_destroy_bool(id, booldatum, NULL); in require_bool_tunable()
|