• Home
  • Raw
  • Download

Lines Matching refs:policydbp

61 policydb_t *policydbp;  variable
230 t = hashtab_search(policydbp->p_types.table, type); in define_permissive()
275 if (ebitmap_set_bit(&policydbp->policycaps, capnum, TRUE)) { in define_polcap()
312 head = policydbp->ocontexts[OCON_ISID]; in define_initial_sid()
327 policydbp->ocontexts[OCON_ISID] = newc; in define_initial_sid()
349 cladatum = hashtab_search(policydbp->p_classes.table, id); in read_classes()
380 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_user()
412 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_role()
444 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_type()
476 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_range()
510 comdatum = hashtab_search(policydbp->p_commons.table, id); in define_common_perms()
521 ret = hashtab_insert(policydbp->p_commons.table, in define_common_perms()
532 comdatum->s.value = policydbp->p_commons.nprim + 1; in define_common_perms()
537 policydbp->p_commons.nprim++; in define_common_perms()
604 cladatum = (class_datum_t *) hashtab_search(policydbp->p_classes.table, in define_av_perms()
628 (common_datum_t *) hashtab_search(policydbp->p_commons. in define_av_perms()
855 (level_datum_t *) hashtab_search(policydbp->p_levels.table, in define_dominance()
875 if (order != policydbp->p_levels.nprim) { in define_dominance()
1047 levdatum = (level_datum_t *) hashtab_search(policydbp->p_levels.table, in define_level()
1075 (cat_datum_t *) hashtab_search(policydbp->p_cats. in define_level()
1086 (cat_datum_t *) hashtab_search(policydbp->p_cats. in define_level()
1104 (cat_datum_t *) hashtab_search(policydbp->p_cats. in define_level()
1122 (policydbp->p_levels.table, clone_level, levdatum->level)) { in define_level()
1174 attr = hashtab_search(policydbp->p_types.table, id); in expand_attrib()
1209 attr = hashtab_search(policydbp->p_types.table, in expand_attrib()
1210 policydbp->sym_val_to_name[SYM_TYPES][i]); in expand_attrib()
1271 aliasdatum = hashtab_search(policydbp->symtab[SYM_TYPES].table, id); in add_aliases_to_type()
1314 t = hashtab_search(policydbp->p_types.table, id); in define_typealias()
1347 t = hashtab_search(policydbp->p_types.table, id); in define_typeattribute()
1361 attr = hashtab_search(policydbp->p_types.table, id); in define_typeattribute()
1398 bounds = hashtab_search(policydbp->p_types.table, bounds_id); in define_typebounds_helper()
1409 type = hashtab_search(policydbp->p_types.table, type_id); in define_typebounds_helper()
1416 type = policydbp->type_val_to_struct[type->s.value - 1]; in define_typebounds_helper()
1418 type = policydbp->type_val_to_struct[type->primary - 1]; in define_typebounds_helper()
1426 policydbp->p_type_val_to_name[type->bounds - 1], in define_typebounds_helper()
1427 policydbp->p_type_val_to_name[bounds->s.value - 1]); in define_typebounds_helper()
1511 attr = hashtab_search(policydbp->p_types.table, id); in define_type()
1586 t = hashtab_search(policydbp->p_types.table, id); in set_types()
1659 datum = (type_datum_t *) hashtab_search(policydbp->p_types.table, in define_compute_type_helper()
2114 cladatum = policydbp->class_val_to_struct[i]; in define_te_avtab_xperms_helper()
2126 policydbp->p_class_val_to_name[i]); in define_te_avtab_xperms_helper()
2128 } else if (!is_perm_in_scope (id, policydbp->p_class_val_to_name[i])) { in define_te_avtab_xperms_helper()
2131 policydbp->p_class_val_to_name[i]); in define_te_avtab_xperms_helper()
2584 cladatum = policydbp->class_val_to_struct[i]; in define_te_avtab_helper()
2614 policydbp->p_class_val_to_name[i]); in define_te_avtab_helper()
2618 (id, policydbp->p_class_val_to_name[i])) { in define_te_avtab_helper()
2622 policydbp->p_class_val_to_name[i]); in define_te_avtab_helper()
2718 role = hashtab_search(policydbp->p_roles.table, id); in define_role_types()
2769 attr = hashtab_search(policydbp->p_roles.table, id); in define_role_attr()
2819 r = hashtab_search(policydbp->p_roles.table, id); in define_roleattribute()
2834 attr = hashtab_search(policydbp->p_roles.table, id); in define_roleattribute()
2920 if (type_set_expand(&rdp->types, &types, policydbp, 1)) { in dominate_role_recheck()
2969 role = (role_datum_t *) hashtab_search(policydbp->p_roles.table, in define_role_dom()
3018 if (type_set_expand(&r->types, &types, policydbp, 1)) { in define_role_dom()
3039 hashtab_map(policydbp->p_roles.table, in define_role_dom()
3075 rc = hashtab_map(policydbp->p_roles.table, role_val_to_name_helper, &v); in role_val_to_name()
3101 r = hashtab_search(policydbp->p_roles.table, id); in set_roles()
3164 cladatum = hashtab_search(policydbp->p_classes.table, in define_role_trans()
3188 role = hashtab_search(policydbp->p_roles.table, id); in define_role_trans()
3203 if (role_set_expand(&roles, &e_roles, policydbp, NULL, NULL)) in define_role_trans()
3206 if (type_set_expand(&types, &e_types, policydbp, 1)) in define_role_trans()
3218 for (tr = policydbp->role_tr; tr; in define_role_trans()
3227 policydbp->p_type_val_to_name[j], in define_role_trans()
3228 policydbp->p_class_val_to_name[k]); in define_role_trans()
3243 tr->next = policydbp->role_tr; in define_role_trans()
3244 policydbp->role_tr = tr; in define_role_trans()
3381 typdatum = hashtab_search(policydbp->p_types.table, id); in define_filename_trans()
3399 if (type_set_expand(&stypes, &e_stypes, policydbp, 1)) in define_filename_trans()
3402 if (type_set_expand(&ttypes, &e_ttypes, policydbp, 1)) in define_filename_trans()
3429 ftdatum = hashtab_search(policydbp->filename_trans, in define_filename_trans()
3434 policydbp->p_type_val_to_name[s], in define_filename_trans()
3435 policydbp->p_type_val_to_name[t], in define_filename_trans()
3436 policydbp->p_class_val_to_name[c]); in define_filename_trans()
3445 rc = hashtab_insert(policydbp->filename_trans, in define_filename_trans()
3606 (class_datum_t *) hashtab_search(policydbp->p_classes.table, in define_constraint()
3649 cladatum = policydbp->class_val_to_struct[i]; in define_constraint()
3748 (class_datum_t *) hashtab_search(policydbp->p_classes.table, in define_validatetrans()
3875 (user_datum_t *) hashtab_search(policydbp-> in define_cexpr()
3894 (role_datum_t *) hashtab_search(policydbp-> in define_cexpr()
4010 if (cond_normalize_expr(policydbp, &cn) < 0) { in define_conditional()
4123 (cond_bool_datum_t *) hashtab_search(policydbp->p_bools. in define_cond_expr()
4166 r = hashtab_search(policydbp->p_roles.table, id); in set_user_roles()
4197 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_categories()
4205 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_categories()
4218 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_categories()
4230 policydb_index_others(NULL, policydbp, 0); in parse_categories()
4233 policydbp->p_cat_val_to_name[i], in parse_categories()
4234 policydbp->p_sens_val_to_name[level_value]); in parse_categories()
4259 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_semantic_categories()
4268 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_semantic_categories()
4276 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_semantic_categories()
4346 hashtab_search(policydbp->p_levels.table, in define_user()
4371 hashtab_search(policydbp->p_levels.table, in define_user()
4459 usrdatum = (user_datum_t *) hashtab_search(policydbp->p_users.table, in parse_security_context()
4482 role = (role_datum_t *) hashtab_search(policydbp->p_roles.table, in parse_security_context()
4505 typdatum = (type_datum_t *) hashtab_search(policydbp->p_types.table, in parse_security_context()
4529 hashtab_search(policydbp->p_levels.table, in parse_security_context()
4566 if (!policydb_context_isvalid(policydbp, c)) { in parse_security_context()
4595 head = policydbp->ocontexts[OCON_ISID]; in define_initial_sid_context()
4624 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) { in define_fs_context()
4661 head = policydbp->ocontexts[OCON_FS]; in define_fs_context()
4676 policydbp->ocontexts[OCON_FS] = newc; in define_fs_context()
4686 if (policydbp->target_platform != SEPOL_TARGET_XEN) { in define_pirq_context()
4712 head = policydbp->ocontexts[OCON_XEN_PIRQ]; in define_pirq_context()
4726 policydbp->ocontexts[OCON_XEN_PIRQ] = newc; in define_pirq_context()
4740 if (policydbp->target_platform != SEPOL_TARGET_XEN) { in define_iomem_context()
4773 head = policydbp->ocontexts[OCON_XEN_IOMEM]; in define_iomem_context()
4790 policydbp->ocontexts[OCON_XEN_IOMEM] = newc; in define_iomem_context()
4804 if (policydbp->target_platform != SEPOL_TARGET_XEN) { in define_ioport_context()
4837 head = policydbp->ocontexts[OCON_XEN_IOPORT]; in define_ioport_context()
4854 policydbp->ocontexts[OCON_XEN_IOPORT] = newc; in define_ioport_context()
4868 if (policydbp->target_platform != SEPOL_TARGET_XEN) { in define_pcidevice_context()
4894 head = policydbp->ocontexts[OCON_XEN_PCIDEVICE]; in define_pcidevice_context()
4909 policydbp->ocontexts[OCON_XEN_PCIDEVICE] = newc; in define_pcidevice_context()
4922 if (policydbp->target_platform != SEPOL_TARGET_XEN) { in define_devicetree_context()
4952 head = policydbp->ocontexts[OCON_XEN_DEVICETREE]; in define_devicetree_context()
4963 policydbp->ocontexts[OCON_XEN_DEVICETREE] = newc; in define_devicetree_context()
4979 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) { in define_port_context()
5028 head = policydbp->ocontexts[OCON_PORT]; in define_port_context()
5052 policydbp->ocontexts[OCON_PORT] = newc; in define_port_context()
5070 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) { in define_ibpkey_context()
5134 head = policydbp->ocontexts[OCON_IBPKEY]; in define_ibpkey_context()
5160 policydbp->ocontexts[OCON_IBPKEY] = newc; in define_ibpkey_context()
5175 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) { in define_ibendport_context()
5220 head = policydbp->ocontexts[OCON_IBENDPORT]; in define_ibendport_context()
5239 policydbp->ocontexts[OCON_IBENDPORT] = newc; in define_ibendport_context()
5253 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) { in define_netif_context()
5288 head = policydbp->ocontexts[OCON_NETIF]; in define_netif_context()
5303 policydbp->ocontexts[OCON_NETIF] = newc; in define_netif_context()
5314 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) { in define_ipv4_node_context()
5376 head = policydbp->ocontexts[OCON_NODE]; in define_ipv4_node_context()
5387 policydbp->ocontexts[OCON_NODE] = newc; in define_ipv4_node_context()
5400 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) { in define_ipv6_node_context()
5463 head = policydbp->ocontexts[OCON_NODE6]; in define_ipv6_node_context()
5474 policydbp->ocontexts[OCON_NODE6] = newc; in define_ipv6_node_context()
5485 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) { in define_fs_use()
5515 head = policydbp->ocontexts[OCON_FSUSE]; in define_fs_use()
5529 policydbp->ocontexts[OCON_FSUSE] = newc; in define_fs_use()
5540 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) { in define_genfs_context_helper()
5554 for (genfs_p = NULL, genfs = policydbp->genfs; in define_genfs_context_helper()
5572 policydbp->genfs = newgenfs; in define_genfs_context_helper()
5723 cladatum = hashtab_search(policydbp->p_classes.table, in define_range_trans()
5743 levdatum = hashtab_search(policydbp->p_levels.table, id); in define_range_trans()