Searched refs:policydbp (Results 1 – 8 of 8) sorted by relevance
/external/selinux/checkpolicy/ |
D | policy_define.c | 64 policydb_t *policydbp; variable 233 t = hashtab_search(policydbp->p_types.table, type); in define_permissive() 278 if (ebitmap_set_bit(&policydbp->policycaps, capnum, TRUE)) { in define_polcap() 315 head = policydbp->ocontexts[OCON_ISID]; in define_initial_sid() 330 policydbp->ocontexts[OCON_ISID] = newc; in define_initial_sid() 352 cladatum = hashtab_search(policydbp->p_classes.table, id); in read_classes() 383 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_user() 415 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_role() 447 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_type() 479 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_range() [all …]
|
D | module_compiler.c | 40 extern policydb_t *policydbp; 87 if (policydbp->policy_type != POLICY_MOD) { in define_policy() 102 policydbp->name = id; in define_policy() 103 if ((policydbp->version = in define_policy() 111 if (policydbp->policy_type == POLICY_MOD) { in define_policy() 125 if (push_stack(1, policydbp->global, policydbp->global->branch_list) == in define_policy() 129 last_block = policydbp->global; in define_policy() 164 ret = symtab_insert(policydbp, symbol_type, key, datum, scope, in create_symbol() 169 hashtab_search(policydbp->symtab[symbol_type].table, in create_symbol() 244 policydbp->p_role_val_to_name[role->bounds - 1]); in role_implicit_bounds() [all …]
|
D | checkpolicy.c | 102 extern policydb_t *policydbp; 303 for (i = 0; i < policydbp->p_bools.nprim; i++) { in display_bools() 304 printf("%s : %d\n", policydbp->p_bool_val_to_name[i], in display_bools() 305 policydbp->bool_val_to_struct[i]->state); in display_bools() 318 policydbp->p_bool_val_to_name[cur->bool - 1]); in display_expr() 349 for (cur = policydbp->cond_list; cur != NULL; cur = cur->next) { in display_cond_expressions() 361 bool = hashtab_search(policydbp->p_bools.table, name); in change_bool() 367 evaluate_conds(policydbp); in change_bool() 566 policydbp = &policydb; in main() 569 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 | 57 extern policydb_t *policydbp; 171 { if (pass == 1) { if (policydb_index_classes(policydbp)) return -1; } 172 … else if (pass == 2) { if (policydb_index_others(NULL, policydbp, 0)) return -1; }} 174 { if (pass == 1) { if (policydb_index_bools(policydbp)) return -1;} 175 else if (pass == 2) { if (policydb_index_others(NULL, policydbp, 0)) return -1;}} 910 if (policydb_index_others(NULL, policydbp, 0)) return -1;
|
/external/selinux/python/audit2allow/ |
D | sepolgen-ifgen-attr-helper.c | 56 int render_access_mask(uint32_t av, avtab_key_t *key, policydb_t *policydbp, in render_access_mask() argument 66 cladatum = policydbp->class_val_to_struct[tclass - 1]; in render_access_mask()
|
/external/selinux/libsepol/include/sepol/policydb/ |
D | util.h | 32 extern char *sepol_av_to_string(policydb_t * policydbp, uint32_t tclass,
|
/external/selinux/libsepol/src/ |
D | util.c | 81 char *sepol_av_to_string(policydb_t * policydbp, uint32_t tclass, in sepol_av_to_string() argument 93 cladatum = policydbp->class_val_to_struct[tclass - 1]; in sepol_av_to_string()
|