Searched refs:policydbp (Results 1 – 7 of 7) sorted by relevance
/external/checkpolicy/ |
D | policy_define.c | 54 policydb_t *policydbp; variable 221 t = hashtab_search(policydbp->p_types.table, type); in define_permissive() 266 if (ebitmap_set_bit(&policydbp->policycaps, capnum, TRUE)) { in define_polcap() 303 head = policydbp->ocontexts[OCON_ISID]; in define_initial_sid() 318 policydbp->ocontexts[OCON_ISID] = newc; in define_initial_sid() 340 cladatum = hashtab_search(policydbp->p_classes.table, id); in read_classes() 372 comdatum = hashtab_search(policydbp->p_commons.table, id); in define_common_perms() 383 ret = hashtab_insert(policydbp->p_commons.table, in define_common_perms() 394 comdatum->s.value = policydbp->p_commons.nprim + 1; in define_common_perms() 399 policydbp->p_commons.nprim++; in define_common_perms() [all …]
|
D | module_compiler.c | 40 extern policydb_t *policydbp; 58 if (policydbp->policy_type != POLICY_MOD) { in define_policy() 73 policydbp->name = id; in define_policy() 74 if ((policydbp->version = in define_policy() 82 if (policydbp->policy_type == POLICY_MOD) { in define_policy() 96 if (push_stack(1, policydbp->global, policydbp->global->branch_list) == in define_policy() 100 last_block = policydbp->global; in define_policy() 137 retval = symtab_insert(policydbp, symbol_type, key, datum, in declare_symbol() 141 (symtab_datum_t *) hashtab_search(policydbp-> in declare_symbol() 195 policydbp->p_role_val_to_name[role->bounds - 1]); in role_implicit_bounds() [all …]
|
D | checkpolicy.c | 95 extern policydb_t *policydbp; 296 for (i = 0; i < policydbp->p_bools.nprim; i++) { in display_bools() 297 printf("%s : %d\n", policydbp->p_bool_val_to_name[i], in display_bools() 298 policydbp->bool_val_to_struct[i]->state); in display_bools() 311 policydbp->p_bool_val_to_name[cur->bool - 1]); in display_expr() 342 for (cur = policydbp->cond_list; cur != NULL; cur = cur->next) { in display_cond_expressions() 354 bool = hashtab_search(policydbp->p_bools.table, name); in change_bool() 360 evaluate_conds(policydbp); in change_bool() 537 policydbp = &policydb; in main() 540 if (policydbp->mls) { in main() [all …]
|
D | parse_util.c | 32 extern policydb_t *policydbp; 50 policydbp = p; in read_source_policy()
|
D | policy_parse.y | 56 extern policydb_t *policydbp; 158 { if (pass == 1) { if (policydb_index_classes(policydbp)) return -1; } 159 … else if (pass == 2) { if (policydb_index_others(NULL, policydbp, 0)) return -1; }} 161 { if (pass == 1) { if (policydb_index_bools(policydbp)) return -1;} 162 else if (pass == 2) { if (policydb_index_others(NULL, policydbp, 0)) return -1;}} 785 if (policydb_index_others(NULL, policydbp, 0)) return -1;
|
/external/libsepol/src/ |
D | util.c | 77 char *sepol_av_to_string(policydb_t * policydbp, uint32_t tclass, in sepol_av_to_string() argument 88 cladatum = policydbp->class_val_to_struct[tclass - 1]; in sepol_av_to_string()
|
/external/libsepol/include/sepol/policydb/ |
D | util.h | 28 extern char *sepol_av_to_string(policydb_t * policydbp, uint32_t tclass,
|