Home
last modified time | relevance | path

Searched refs:policydbp (Results 1 – 8 of 8) sorted by relevance

/external/selinux/checkpolicy/
Dpolicy_define.c57 policydb_t *policydbp; variable
226 t = hashtab_search(policydbp->p_types.table, type); in define_permissive()
271 if (ebitmap_set_bit(&policydbp->policycaps, capnum, TRUE)) { in define_polcap()
308 head = policydbp->ocontexts[OCON_ISID]; in define_initial_sid()
323 policydbp->ocontexts[OCON_ISID] = newc; in define_initial_sid()
345 cladatum = hashtab_search(policydbp->p_classes.table, id); in read_classes()
375 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_user()
407 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_role()
439 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_type()
471 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_range()
[all …]
Dmodule_compiler.c40 extern policydb_t *policydbp;
59 if (policydbp->policy_type != POLICY_MOD) { in define_policy()
74 policydbp->name = id; in define_policy()
75 if ((policydbp->version = in define_policy()
83 if (policydbp->policy_type == POLICY_MOD) { in define_policy()
97 if (push_stack(1, policydbp->global, policydbp->global->branch_list) == in define_policy()
101 last_block = policydbp->global; in define_policy()
138 retval = symtab_insert(policydbp, symbol_type, key, datum, in declare_symbol()
142 (symtab_datum_t *) hashtab_search(policydbp-> in declare_symbol()
196 policydbp->p_role_val_to_name[role->bounds - 1]); in role_implicit_bounds()
[all …]
Dcheckpolicy.c96 extern policydb_t *policydbp;
297 for (i = 0; i < policydbp->p_bools.nprim; i++) { in display_bools()
298 printf("%s : %d\n", policydbp->p_bool_val_to_name[i], in display_bools()
299 policydbp->bool_val_to_struct[i]->state); in display_bools()
312 policydbp->p_bool_val_to_name[cur->bool - 1]); in display_expr()
343 for (cur = policydbp->cond_list; cur != NULL; cur = cur->next) { in display_cond_expressions()
355 bool = hashtab_search(policydbp->p_bools.table, name); in change_bool()
361 evaluate_conds(policydbp); in change_bool()
554 policydbp = &policydb; in main()
557 if (policydbp->mls) { in main()
[all …]
Dparse_util.c32 extern policydb_t *policydbp;
50 policydbp = p; in read_source_policy()
Dpolicy_parse.y56 extern policydb_t *policydbp;
167 { if (pass == 1) { if (policydb_index_classes(policydbp)) return -1; }
168 … else if (pass == 2) { if (policydb_index_others(NULL, policydbp, 0)) return -1; }}
170 { if (pass == 1) { if (policydb_index_bools(policydbp)) return -1;}
171 else if (pass == 2) { if (policydb_index_others(NULL, policydbp, 0)) return -1;}}
882 if (policydb_index_others(NULL, policydbp, 0)) return -1;
/external/selinux/libsepol/include/sepol/policydb/
Dutil.h32 extern char *sepol_av_to_string(policydb_t * policydbp, uint32_t tclass,
/external/selinux/policycoreutils/sepolgen-ifgen/
Dsepolgen-ifgen-attr-helper.c56 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/src/
Dutil.c81 char *sepol_av_to_string(policydb_t * policydbp, uint32_t tclass, in sepol_av_to_string() argument
92 cladatum = policydbp->class_val_to_struct[tclass - 1]; in sepol_av_to_string()