Lines Matching refs:policydb
15 policydb_t * policydb, in bool_update() argument
31 hashtab_search(policydb->p_bools.table, name); in bool_update()
55 const policydb_t * policydb, in bool_to_record() argument
59 const char *name = policydb->p_bool_val_to_name[bool_idx]; in bool_to_record()
60 cond_bool_datum_t *booldatum = policydb->bool_val_to_struct[bool_idx]; in bool_to_record()
90 policydb_t *policydb = &p->p; in sepol_bool_set() local
91 if (bool_update(handle, policydb, key, data) < 0) in sepol_bool_set()
94 if (evaluate_conds(policydb) < 0) { in sepol_bool_set()
110 const policydb_t *policydb = &p->p; in sepol_bool_count() local
111 *response = policydb->p_bools.nprim; in sepol_bool_count()
122 const policydb_t *policydb = &p->p; in sepol_bool_exists() local
135 *response = (hashtab_search(policydb->p_bools.table, name) != NULL); in sepol_bool_exists()
145 const policydb_t *policydb = &p->p; in sepol_bool_query() local
156 booldatum = hashtab_search(policydb->p_bools.table, name); in sepol_bool_query()
162 if (bool_to_record(handle, policydb, in sepol_bool_query()
184 const policydb_t *policydb = &p->p; in sepol_bool_iterate() local
185 unsigned int nbools = policydb->p_bools.nprim; in sepol_bool_iterate()
194 if (bool_to_record(handle, policydb, i, &boolean) < 0) in sepol_bool_iterate()