Lines Matching defs:policydbp
67 policydb_t *policydbp;
228 t = hashtab_search(policydbp->p_types.table, type);
273 if (ebitmap_set_bit(&policydbp->policycaps, capnum, TRUE)) {
310 head = policydbp->ocontexts[OCON_ISID];
325 policydbp->ocontexts[OCON_ISID] = newc;
347 cladatum = hashtab_search(policydbp->p_classes.table, id);
378 cladatum = hashtab_search(policydbp->p_classes.table, id);
410 cladatum = hashtab_search(policydbp->p_classes.table, id);
442 cladatum = hashtab_search(policydbp->p_classes.table, id);
474 cladatum = hashtab_search(policydbp->p_classes.table, id);
508 comdatum = hashtab_search(policydbp->p_commons.table, id);
519 ret = hashtab_insert(policydbp->p_commons.table,
530 comdatum->s.value = policydbp->p_commons.nprim + 1;
535 policydbp->p_commons.nprim++;
602 cladatum = (class_datum_t *) hashtab_search(policydbp->p_classes.table,
626 (common_datum_t *) hashtab_search(policydbp->p_commons.
853 (level_datum_t *) hashtab_search(policydbp->p_levels.table,
873 if (order != policydbp->p_levels.nprim) {
1045 levdatum = (level_datum_t *) hashtab_search(policydbp->p_levels.table,
1073 (cat_datum_t *) hashtab_search(policydbp->p_cats.
1084 (cat_datum_t *) hashtab_search(policydbp->p_cats.
1102 (cat_datum_t *) hashtab_search(policydbp->p_cats.
1125 (policydbp->p_levels.table, clone_level, levdatum->level)) {
1172 attr = hashtab_search(policydbp->p_types.table, id);
1204 attr = hashtab_search(policydbp->p_types.table,
1205 policydbp->sym_val_to_name[SYM_TYPES][i]);
1266 aliasdatum = hashtab_search(policydbp->symtab[SYM_TYPES].table, id);
1309 t = hashtab_search(policydbp->p_types.table, id);
1342 t = hashtab_search(policydbp->p_types.table, id);
1356 attr = hashtab_search(policydbp->p_types.table, id);
1393 bounds = hashtab_search(policydbp->p_types.table, bounds_id);
1404 type = hashtab_search(policydbp->p_types.table, type_id);
1411 type = policydbp->type_val_to_struct[type->s.value - 1];
1413 type = policydbp->type_val_to_struct[type->primary - 1];
1421 policydbp->p_type_val_to_name[type->bounds - 1],
1422 policydbp->p_type_val_to_name[bounds->s.value - 1]);
1506 attr = hashtab_search(policydbp->p_types.table, id);
1581 t = hashtab_search(policydbp->p_types.table, id);
1663 datum = (type_datum_t *) hashtab_search(policydbp->p_types.table,
2117 cladatum = policydbp->class_val_to_struct[i];
2129 policydbp->p_class_val_to_name[i]);
2131 } else if (!is_perm_in_scope (id, policydbp->p_class_val_to_name[i])) {
2134 policydbp->p_class_val_to_name[i]);
2582 cladatum = policydbp->class_val_to_struct[i];
2612 policydbp->p_class_val_to_name[i]);
2616 (id, policydbp->p_class_val_to_name[i])) {
2620 policydbp->p_class_val_to_name[i]);
2716 role = hashtab_search(policydbp->p_roles.table, id);
2767 attr = hashtab_search(policydbp->p_roles.table, id);
2817 r = hashtab_search(policydbp->p_roles.table, id);
2832 attr = hashtab_search(policydbp->p_roles.table, id);
2918 if (type_set_expand(&rdp->types, &types, policydbp, 1)) {
2963 role = (role_datum_t *) hashtab_search(policydbp->p_roles.table,
3011 if (type_set_expand(&r->types, &types, policydbp, 1)) {
3030 hashtab_map(policydbp->p_roles.table,
3066 rc = hashtab_map(policydbp->p_roles.table, role_val_to_name_helper, &v);
3092 r = hashtab_search(policydbp->p_roles.table, id);
3155 cladatum = hashtab_search(policydbp->p_classes.table,
3179 role = hashtab_search(policydbp->p_roles.table, id);
3194 if (role_set_expand(&roles, &e_roles, policydbp, NULL, NULL))
3197 if (type_set_expand(&types, &e_types, policydbp, 1))
3203 for (tr = policydbp->role_tr; tr;
3212 policydbp->p_type_val_to_name[j],
3213 policydbp->p_class_val_to_name[k]);
3228 tr->next = policydbp->role_tr;
3229 policydbp->role_tr = tr;
3374 typdatum = hashtab_search(policydbp->p_types.table, id);
3392 if (type_set_expand(&stypes, &e_stypes, policydbp, 1))
3395 if (type_set_expand(&ttypes, &e_ttypes, policydbp, 1))
3402 policydbp, s+1, t+1, c+1, name,
3409 policydbp->p_type_val_to_name[s],
3410 policydbp->p_type_val_to_name[t],
3411 policydbp->p_class_val_to_name[c]);
3420 policydbp, s+1, s+1, c+1, name,
3427 policydbp->p_type_val_to_name[s],
3428 policydbp->p_type_val_to_name[s],
3429 policydbp->p_class_val_to_name[c]);
3588 (class_datum_t *) hashtab_search(policydbp->p_classes.table,
3630 cladatum = policydbp->class_val_to_struct[i];
3668 " defined for class %s", id, policydbp->p_class_val_to_name[i]);
3743 (class_datum_t *) hashtab_search(policydbp->p_classes.table,
3870 (user_datum_t *) hashtab_search(policydbp->
3889 (role_datum_t *) hashtab_search(policydbp->
4005 if (cond_normalize_expr(policydbp, &cn) < 0) {
4118 (cond_bool_datum_t *) hashtab_search(policydbp->p_bools.
4159 r = hashtab_search(policydbp->p_roles.table, id);
4186 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table,
4194 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table,
4207 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table,
4219 policydb_index_others(NULL, policydbp, 0);
4222 policydbp->p_cat_val_to_name[i],
4223 policydbp->p_sens_val_to_name[level_value]);
4248 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table,
4257 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table,
4265 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table,
4335 hashtab_search(policydbp->p_levels.table,
4360 hashtab_search(policydbp->p_levels.table,
4448 usrdatum = (user_datum_t *) hashtab_search(policydbp->p_users.table,
4471 role = (role_datum_t *) hashtab_search(policydbp->p_roles.table,
4494 typdatum = (type_datum_t *) hashtab_search(policydbp->p_types.table,
4518 hashtab_search(policydbp->p_levels.table,
4555 if (!policydb_context_isvalid(policydbp, c)) {
4584 head = policydbp->ocontexts[OCON_ISID];
4613 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) {
4650 head = policydbp->ocontexts[OCON_FS];
4665 policydbp->ocontexts[OCON_FS] = newc;
4675 if (policydbp->target_platform != SEPOL_TARGET_XEN) {
4701 head = policydbp->ocontexts[OCON_XEN_PIRQ];
4715 policydbp->ocontexts[OCON_XEN_PIRQ] = newc;
4729 if (policydbp->target_platform != SEPOL_TARGET_XEN) {
4762 head = policydbp->ocontexts[OCON_XEN_IOMEM];
4779 policydbp->ocontexts[OCON_XEN_IOMEM] = newc;
4793 if (policydbp->target_platform != SEPOL_TARGET_XEN) {
4826 head = policydbp->ocontexts[OCON_XEN_IOPORT];
4843 policydbp->ocontexts[OCON_XEN_IOPORT] = newc;
4857 if (policydbp->target_platform != SEPOL_TARGET_XEN) {
4883 head = policydbp->ocontexts[OCON_XEN_PCIDEVICE];
4898 policydbp->ocontexts[OCON_XEN_PCIDEVICE] = newc;
4911 if (policydbp->target_platform != SEPOL_TARGET_XEN) {
4941 head = policydbp->ocontexts[OCON_XEN_DEVICETREE];
4952 policydbp->ocontexts[OCON_XEN_DEVICETREE] = newc;
4968 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) {
5019 head = policydbp->ocontexts[OCON_PORT];
5043 policydbp->ocontexts[OCON_PORT] = newc;
5061 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) {
5125 head = policydbp->ocontexts[OCON_IBPKEY];
5151 policydbp->ocontexts[OCON_IBPKEY] = newc;
5166 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) {
5211 head = policydbp->ocontexts[OCON_IBENDPORT];
5230 policydbp->ocontexts[OCON_IBENDPORT] = newc;
5244 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) {
5279 head = policydbp->ocontexts[OCON_NETIF];
5294 policydbp->ocontexts[OCON_NETIF] = newc;
5305 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) {
5375 head = policydbp->ocontexts[OCON_NODE];
5386 policydbp->ocontexts[OCON_NODE] = newc;
5433 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) {
5504 head = policydbp->ocontexts[OCON_NODE6];
5515 policydbp->ocontexts[OCON_NODE6] = newc;
5526 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) {
5556 head = policydbp->ocontexts[OCON_FSUSE];
5570 policydbp->ocontexts[OCON_FSUSE] = newc;
5583 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) {
5597 for (genfs_p = NULL, genfs = policydbp->genfs;
5615 policydbp->genfs = newgenfs;
5667 cladatum = hashtab_search(policydbp->p_classes.table,
5775 cladatum = hashtab_search(policydbp->p_classes.table,
5795 levdatum = hashtab_search(policydbp->p_levels.table, id);