Home
last modified time | relevance | path

Searched refs:policydbp (Results 1 - 7 of 7) sorted by relevance

/third_party/selinux/checkpolicy/
H A Dpolicy_define.c67 policydb_t *policydbp; variable
228 t = hashtab_search(policydbp->p_types.table, type); in define_permissive()
273 if (ebitmap_set_bit(&policydbp->policycaps, capnum, TRUE)) { in define_polcap()
310 head = policydbp->ocontexts[OCON_ISID]; in define_initial_sid()
325 policydbp->ocontexts[OCON_ISID] = newc; in define_initial_sid()
347 cladatum = hashtab_search(policydbp->p_classes.table, id); in read_classes()
378 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_user()
410 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_role()
442 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_type()
474 cladatum = hashtab_search(policydbp in define_default_range()
[all...]
H A Dcheckpolicy.c98 extern policydb_t *policydbp;
301 for (i = 0; i < policydbp->p_bools.nprim; i++) { in display_bools()
302 printf("%s : %d\n", policydbp->p_bool_val_to_name[i], in display_bools()
303 policydbp->bool_val_to_struct[i]->state); in display_bools()
316 policydbp->p_bool_val_to_name[cur->bool - 1]); in display_expr()
347 for (cur = policydbp->cond_list; cur != NULL; cur = cur->next) { in display_cond_expressions()
359 bool = hashtab_search(policydbp->p_bools.table, name); in change_bool()
365 evaluate_conds(policydbp); in change_bool()
573 policydbp = &policydb; in main()
576 if (policydbp in main()
[all...]
H A Dmodule_compiler.c40 extern policydb_t *policydbp;
87 if (policydbp->policy_type != POLICY_MOD) { in define_policy()
102 free(policydbp->name); in define_policy()
103 policydbp->name = id; in define_policy()
104 if ((policydbp->version = in define_policy()
112 if (policydbp->policy_type == POLICY_MOD) { in define_policy()
126 if (push_stack(1, policydbp->global, policydbp->global->branch_list) == in define_policy()
130 last_block = policydbp->global; in define_policy()
165 ret = symtab_insert(policydbp, symbol_typ in create_symbol()
[all...]
H A Dparse_util.c31 extern policydb_t *policydbp;
49 policydbp = p; in read_source_policy()
50 policydbp->name = strdup(file); in read_source_policy()
H A Dpolicy_parse.y56 extern policydb_t *policydbp;
170 { if (pass == 1) { if (policydb_index_classes(policydbp)) return -1; }
171 else if (pass == 2) { if (policydb_index_others(NULL, policydbp, 0)) return -1; }}
173 { if (pass == 1) { if (policydb_index_bools(policydbp)) return -1;}
174 else if (pass == 2) { if (policydb_index_others(NULL, policydbp, 0)) return -1;}}
927 if (policydb_index_others(NULL, policydbp, 0)) return -1;
/third_party/selinux/libsepol/include/sepol/policydb/
H A Dutil.h34 extern char *sepol_av_to_string(policydb_t * policydbp, uint32_t tclass,
/third_party/selinux/libsepol/src/
H A Dutil.c85 char *sepol_av_to_string(policydb_t * policydbp, uint32_t tclass, in sepol_av_to_string() argument
97 cladatum = policydbp->class_val_to_struct[tclass - 1]; in sepol_av_to_string()

Completed in 7 milliseconds