• Home
  • Raw
  • Download

Lines Matching refs:policydbp

60 policydb_t *policydbp;  variable
229 t = hashtab_search(policydbp->p_types.table, type); in define_permissive()
274 if (ebitmap_set_bit(&policydbp->policycaps, capnum, TRUE)) { in define_polcap()
311 head = policydbp->ocontexts[OCON_ISID]; in define_initial_sid()
326 policydbp->ocontexts[OCON_ISID] = newc; in define_initial_sid()
348 cladatum = hashtab_search(policydbp->p_classes.table, id); in read_classes()
379 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_user()
411 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_role()
443 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_type()
475 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_range()
509 comdatum = hashtab_search(policydbp->p_commons.table, id); in define_common_perms()
520 ret = hashtab_insert(policydbp->p_commons.table, in define_common_perms()
531 comdatum->s.value = policydbp->p_commons.nprim + 1; in define_common_perms()
536 policydbp->p_commons.nprim++; in define_common_perms()
603 cladatum = (class_datum_t *) hashtab_search(policydbp->p_classes.table, in define_av_perms()
627 (common_datum_t *) hashtab_search(policydbp->p_commons. in define_av_perms()
854 (level_datum_t *) hashtab_search(policydbp->p_levels.table, in define_dominance()
874 if (order != policydbp->p_levels.nprim) { in define_dominance()
1046 levdatum = (level_datum_t *) hashtab_search(policydbp->p_levels.table, in define_level()
1074 (cat_datum_t *) hashtab_search(policydbp->p_cats. in define_level()
1085 (cat_datum_t *) hashtab_search(policydbp->p_cats. in define_level()
1103 (cat_datum_t *) hashtab_search(policydbp->p_cats. in define_level()
1121 (policydbp->p_levels.table, clone_level, levdatum->level)) { in define_level()
1173 attr = hashtab_search(policydbp->p_types.table, id); in expand_attrib()
1212 attr = hashtab_search(policydbp->p_types.table, in expand_attrib()
1213 policydbp->sym_val_to_name[SYM_TYPES][i]); in expand_attrib()
1268 aliasdatum = hashtab_search(policydbp->symtab[SYM_TYPES].table, id); in add_aliases_to_type()
1311 t = hashtab_search(policydbp->p_types.table, id); in define_typealias()
1344 t = hashtab_search(policydbp->p_types.table, id); in define_typeattribute()
1358 attr = hashtab_search(policydbp->p_types.table, id); in define_typeattribute()
1395 bounds = hashtab_search(policydbp->p_types.table, bounds_id); in define_typebounds_helper()
1406 type = hashtab_search(policydbp->p_types.table, type_id); in define_typebounds_helper()
1413 type = policydbp->type_val_to_struct[type->s.value - 1]; in define_typebounds_helper()
1415 type = policydbp->type_val_to_struct[type->primary - 1]; in define_typebounds_helper()
1423 policydbp->p_type_val_to_name[type->bounds - 1], in define_typebounds_helper()
1424 policydbp->p_type_val_to_name[bounds->s.value - 1]); in define_typebounds_helper()
1508 attr = hashtab_search(policydbp->p_types.table, id); in define_type()
1583 t = hashtab_search(policydbp->p_types.table, id); in set_types()
1656 datum = (type_datum_t *) hashtab_search(policydbp->p_types.table, in define_compute_type_helper()
2111 cladatum = policydbp->class_val_to_struct[i]; in define_te_avtab_xperms_helper()
2123 policydbp->p_class_val_to_name[i]); in define_te_avtab_xperms_helper()
2125 } else if (!is_perm_in_scope (id, policydbp->p_class_val_to_name[i])) { in define_te_avtab_xperms_helper()
2128 policydbp->p_class_val_to_name[i]); in define_te_avtab_xperms_helper()
2581 cladatum = policydbp->class_val_to_struct[i]; in define_te_avtab_helper()
2611 policydbp->p_class_val_to_name[i]); in define_te_avtab_helper()
2615 (id, policydbp->p_class_val_to_name[i])) { in define_te_avtab_helper()
2619 policydbp->p_class_val_to_name[i]); in define_te_avtab_helper()
2715 role = hashtab_search(policydbp->p_roles.table, id); in define_role_types()
2766 attr = hashtab_search(policydbp->p_roles.table, id); in define_role_attr()
2816 r = hashtab_search(policydbp->p_roles.table, id); in define_roleattribute()
2831 attr = hashtab_search(policydbp->p_roles.table, id); in define_roleattribute()
2917 if (type_set_expand(&rdp->types, &types, policydbp, 1)) { in dominate_role_recheck()
2966 role = (role_datum_t *) hashtab_search(policydbp->p_roles.table, in define_role_dom()
3015 if (type_set_expand(&r->types, &types, policydbp, 1)) { in define_role_dom()
3036 hashtab_map(policydbp->p_roles.table, in define_role_dom()
3072 rc = hashtab_map(policydbp->p_roles.table, role_val_to_name_helper, &v); in role_val_to_name()
3098 r = hashtab_search(policydbp->p_roles.table, id); in set_roles()
3161 cladatum = hashtab_search(policydbp->p_classes.table, in define_role_trans()
3185 role = hashtab_search(policydbp->p_roles.table, id); in define_role_trans()
3200 if (role_set_expand(&roles, &e_roles, policydbp, NULL, NULL)) in define_role_trans()
3203 if (type_set_expand(&types, &e_types, policydbp, 1)) in define_role_trans()
3215 for (tr = policydbp->role_tr; tr; in define_role_trans()
3224 policydbp->p_type_val_to_name[j], in define_role_trans()
3225 policydbp->p_class_val_to_name[k]); in define_role_trans()
3240 tr->next = policydbp->role_tr; in define_role_trans()
3241 policydbp->role_tr = tr; in define_role_trans()
3378 typdatum = hashtab_search(policydbp->p_types.table, id); in define_filename_trans()
3396 if (type_set_expand(&stypes, &e_stypes, policydbp, 1)) in define_filename_trans()
3399 if (type_set_expand(&ttypes, &e_ttypes, policydbp, 1)) in define_filename_trans()
3426 ftdatum = hashtab_search(policydbp->filename_trans, in define_filename_trans()
3431 policydbp->p_type_val_to_name[s], in define_filename_trans()
3432 policydbp->p_type_val_to_name[t], in define_filename_trans()
3433 policydbp->p_class_val_to_name[c]); in define_filename_trans()
3442 rc = hashtab_insert(policydbp->filename_trans, in define_filename_trans()
3603 (class_datum_t *) hashtab_search(policydbp->p_classes.table, in define_constraint()
3646 cladatum = policydbp->class_val_to_struct[i]; in define_constraint()
3745 (class_datum_t *) hashtab_search(policydbp->p_classes.table, in define_validatetrans()
3872 (user_datum_t *) hashtab_search(policydbp-> in define_cexpr()
3891 (role_datum_t *) hashtab_search(policydbp-> in define_cexpr()
4007 if (cond_normalize_expr(policydbp, &cn) < 0) { in define_conditional()
4120 (cond_bool_datum_t *) hashtab_search(policydbp->p_bools. in define_cond_expr()
4163 r = hashtab_search(policydbp->p_roles.table, id); in set_user_roles()
4194 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_categories()
4202 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_categories()
4215 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_categories()
4227 policydb_index_others(NULL, policydbp, 0); in parse_categories()
4230 policydbp->p_cat_val_to_name[i], in parse_categories()
4231 policydbp->p_sens_val_to_name[level_value]); in parse_categories()
4256 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_semantic_categories()
4265 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_semantic_categories()
4273 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_semantic_categories()
4343 hashtab_search(policydbp->p_levels.table, in define_user()
4368 hashtab_search(policydbp->p_levels.table, in define_user()
4456 usrdatum = (user_datum_t *) hashtab_search(policydbp->p_users.table, in parse_security_context()
4479 role = (role_datum_t *) hashtab_search(policydbp->p_roles.table, in parse_security_context()
4502 typdatum = (type_datum_t *) hashtab_search(policydbp->p_types.table, in parse_security_context()
4526 hashtab_search(policydbp->p_levels.table, in parse_security_context()
4563 if (!policydb_context_isvalid(policydbp, c)) { in parse_security_context()
4592 head = policydbp->ocontexts[OCON_ISID]; in define_initial_sid_context()
4621 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) { in define_fs_context()
4658 head = policydbp->ocontexts[OCON_FS]; in define_fs_context()
4673 policydbp->ocontexts[OCON_FS] = newc; in define_fs_context()
4683 if (policydbp->target_platform != SEPOL_TARGET_XEN) { in define_pirq_context()
4709 head = policydbp->ocontexts[OCON_XEN_PIRQ]; in define_pirq_context()
4723 policydbp->ocontexts[OCON_XEN_PIRQ] = newc; in define_pirq_context()
4737 if (policydbp->target_platform != SEPOL_TARGET_XEN) { in define_iomem_context()
4770 head = policydbp->ocontexts[OCON_XEN_IOMEM]; in define_iomem_context()
4787 policydbp->ocontexts[OCON_XEN_IOMEM] = newc; in define_iomem_context()
4801 if (policydbp->target_platform != SEPOL_TARGET_XEN) { in define_ioport_context()
4834 head = policydbp->ocontexts[OCON_XEN_IOPORT]; in define_ioport_context()
4851 policydbp->ocontexts[OCON_XEN_IOPORT] = newc; in define_ioport_context()
4865 if (policydbp->target_platform != SEPOL_TARGET_XEN) { in define_pcidevice_context()
4891 head = policydbp->ocontexts[OCON_XEN_PCIDEVICE]; in define_pcidevice_context()
4906 policydbp->ocontexts[OCON_XEN_PCIDEVICE] = newc; in define_pcidevice_context()
4919 if (policydbp->target_platform != SEPOL_TARGET_XEN) { in define_devicetree_context()
4949 head = policydbp->ocontexts[OCON_XEN_DEVICETREE]; in define_devicetree_context()
4960 policydbp->ocontexts[OCON_XEN_DEVICETREE] = newc; in define_devicetree_context()
4976 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) { in define_port_context()
5025 head = policydbp->ocontexts[OCON_PORT]; in define_port_context()
5049 policydbp->ocontexts[OCON_PORT] = newc; in define_port_context()
5064 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) { in define_netif_context()
5099 head = policydbp->ocontexts[OCON_NETIF]; in define_netif_context()
5114 policydbp->ocontexts[OCON_NETIF] = newc; in define_netif_context()
5125 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) { in define_ipv4_node_context()
5187 head = policydbp->ocontexts[OCON_NODE]; in define_ipv4_node_context()
5198 policydbp->ocontexts[OCON_NODE] = newc; in define_ipv4_node_context()
5211 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) { in define_ipv6_node_context()
5274 head = policydbp->ocontexts[OCON_NODE6]; in define_ipv6_node_context()
5285 policydbp->ocontexts[OCON_NODE6] = newc; in define_ipv6_node_context()
5296 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) { in define_fs_use()
5326 head = policydbp->ocontexts[OCON_FSUSE]; in define_fs_use()
5340 policydbp->ocontexts[OCON_FSUSE] = newc; in define_fs_use()
5351 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) { in define_genfs_context_helper()
5365 for (genfs_p = NULL, genfs = policydbp->genfs; in define_genfs_context_helper()
5383 policydbp->genfs = newgenfs; in define_genfs_context_helper()
5534 cladatum = hashtab_search(policydbp->p_classes.table, in define_range_trans()
5554 levdatum = hashtab_search(policydbp->p_levels.table, id); in define_range_trans()