Lines Matching defs:policydbp

60 policydb_t *policydbp;
229 t = hashtab_search(policydbp->p_types.table, type);
274 if (ebitmap_set_bit(&policydbp->policycaps, capnum, TRUE)) {
311 head = policydbp->ocontexts[OCON_ISID];
326 policydbp->ocontexts[OCON_ISID] = newc;
348 cladatum = hashtab_search(policydbp->p_classes.table, id);
379 cladatum = hashtab_search(policydbp->p_classes.table, id);
411 cladatum = hashtab_search(policydbp->p_classes.table, id);
443 cladatum = hashtab_search(policydbp->p_classes.table, id);
475 cladatum = hashtab_search(policydbp->p_classes.table, id);
509 comdatum = hashtab_search(policydbp->p_commons.table, id);
520 ret = hashtab_insert(policydbp->p_commons.table,
531 comdatum->s.value = policydbp->p_commons.nprim + 1;
536 policydbp->p_commons.nprim++;
603 cladatum = (class_datum_t *) hashtab_search(policydbp->p_classes.table,
627 (common_datum_t *) hashtab_search(policydbp->p_commons.
854 (level_datum_t *) hashtab_search(policydbp->p_levels.table,
874 if (order != policydbp->p_levels.nprim) {
1046 levdatum = (level_datum_t *) hashtab_search(policydbp->p_levels.table,
1074 (cat_datum_t *) hashtab_search(policydbp->p_cats.
1085 (cat_datum_t *) hashtab_search(policydbp->p_cats.
1103 (cat_datum_t *) hashtab_search(policydbp->p_cats.
1121 (policydbp->p_levels.table, clone_level, levdatum->level)) {
1186 aliasdatum = hashtab_search(policydbp->symtab[SYM_TYPES].table, id);
1229 t = hashtab_search(policydbp->p_types.table, id);
1262 t = hashtab_search(policydbp->p_types.table, id);
1276 attr = hashtab_search(policydbp->p_types.table, id);
1313 bounds = hashtab_search(policydbp->p_types.table, bounds_id);
1324 type = hashtab_search(policydbp->p_types.table, type_id);
1331 type = policydbp->type_val_to_struct[type->s.value - 1];
1333 type = policydbp->type_val_to_struct[type->primary - 1];
1341 policydbp->p_type_val_to_name[type->bounds - 1],
1342 policydbp->p_type_val_to_name[bounds->s.value - 1]);
1426 attr = hashtab_search(policydbp->p_types.table, id);
1501 t = hashtab_search(policydbp->p_types.table, id);
1574 datum = (type_datum_t *) hashtab_search(policydbp->p_types.table,
2029 cladatum = policydbp->class_val_to_struct[i];
2041 policydbp->p_class_val_to_name[i]);
2043 } else if (!is_perm_in_scope (id, policydbp->p_class_val_to_name[i])) {
2046 policydbp->p_class_val_to_name[i]);
2499 cladatum = policydbp->class_val_to_struct[i];
2529 policydbp->p_class_val_to_name[i]);
2533 (id, policydbp->p_class_val_to_name[i])) {
2537 policydbp->p_class_val_to_name[i]);
2633 role = hashtab_search(policydbp->p_roles.table, id);
2684 attr = hashtab_search(policydbp->p_roles.table, id);
2734 r = hashtab_search(policydbp->p_roles.table, id);
2749 attr = hashtab_search(policydbp->p_roles.table, id);
2835 if (type_set_expand(&rdp->types, &types, policydbp, 1)) {
2884 role = (role_datum_t *) hashtab_search(policydbp->p_roles.table,
2933 if (type_set_expand(&r->types, &types, policydbp, 1)) {
2954 hashtab_map(policydbp->p_roles.table,
2990 rc = hashtab_map(policydbp->p_roles.table, role_val_to_name_helper, &v);
3016 r = hashtab_search(policydbp->p_roles.table, id);
3079 cladatum = hashtab_search(policydbp->p_classes.table,
3103 role = hashtab_search(policydbp->p_roles.table, id);
3118 if (role_set_expand(&roles, &e_roles, policydbp, NULL, NULL))
3121 if (type_set_expand(&types, &e_types, policydbp, 1))
3133 for (tr = policydbp->role_tr; tr;
3142 policydbp->p_type_val_to_name[j],
3143 policydbp->p_class_val_to_name[k]);
3158 tr->next = policydbp->role_tr;
3159 policydbp->role_tr = tr;
3296 typdatum = hashtab_search(policydbp->p_types.table, id);
3314 if (type_set_expand(&stypes, &e_stypes, policydbp, 1))
3317 if (type_set_expand(&ttypes, &e_ttypes, policydbp, 1))
3344 ftdatum = hashtab_search(policydbp->filename_trans,
3349 policydbp->p_type_val_to_name[s],
3350 policydbp->p_type_val_to_name[t],
3351 policydbp->p_class_val_to_name[c]);
3360 rc = hashtab_insert(policydbp->filename_trans,
3521 (class_datum_t *) hashtab_search(policydbp->p_classes.table,
3564 cladatum = policydbp->class_val_to_struct[i];
3663 (class_datum_t *) hashtab_search(policydbp->p_classes.table,
3790 (user_datum_t *) hashtab_search(policydbp->
3809 (role_datum_t *) hashtab_search(policydbp->
3925 if (cond_normalize_expr(policydbp, &cn) < 0) {
4038 (cond_bool_datum_t *) hashtab_search(policydbp->p_bools.
4081 r = hashtab_search(policydbp->p_roles.table, id);
4112 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table,
4120 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table,
4133 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table,
4145 policydb_index_others(NULL, policydbp, 0);
4148 policydbp->p_cat_val_to_name[i],
4149 policydbp->p_sens_val_to_name[level_value]);
4174 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table,
4183 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table,
4191 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table,
4261 hashtab_search(policydbp->p_levels.table,
4286 hashtab_search(policydbp->p_levels.table,
4374 usrdatum = (user_datum_t *) hashtab_search(policydbp->p_users.table,
4397 role = (role_datum_t *) hashtab_search(policydbp->p_roles.table,
4420 typdatum = (type_datum_t *) hashtab_search(policydbp->p_types.table,
4444 hashtab_search(policydbp->p_levels.table,
4481 if (!policydb_context_isvalid(policydbp, c)) {
4510 head = policydbp->ocontexts[OCON_ISID];
4539 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) {
4576 head = policydbp->ocontexts[OCON_FS];
4591 policydbp->ocontexts[OCON_FS] = newc;
4601 if (policydbp->target_platform != SEPOL_TARGET_XEN) {
4627 head = policydbp->ocontexts[OCON_XEN_PIRQ];
4641 policydbp->ocontexts[OCON_XEN_PIRQ] = newc;
4655 if (policydbp->target_platform != SEPOL_TARGET_XEN) {
4688 head = policydbp->ocontexts[OCON_XEN_IOMEM];
4705 policydbp->ocontexts[OCON_XEN_IOMEM] = newc;
4719 if (policydbp->target_platform != SEPOL_TARGET_XEN) {
4752 head = policydbp->ocontexts[OCON_XEN_IOPORT];
4769 policydbp->ocontexts[OCON_XEN_IOPORT] = newc;
4783 if (policydbp->target_platform != SEPOL_TARGET_XEN) {
4809 head = policydbp->ocontexts[OCON_XEN_PCIDEVICE];
4824 policydbp->ocontexts[OCON_XEN_PCIDEVICE] = newc;
4837 if (policydbp->target_platform != SEPOL_TARGET_XEN) {
4867 head = policydbp->ocontexts[OCON_XEN_DEVICETREE];
4878 policydbp->ocontexts[OCON_XEN_DEVICETREE] = newc;
4894 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) {
4943 head = policydbp->ocontexts[OCON_PORT];
4967 policydbp->ocontexts[OCON_PORT] = newc;
4982 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) {
5017 head = policydbp->ocontexts[OCON_NETIF];
5032 policydbp->ocontexts[OCON_NETIF] = newc;
5043 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) {
5105 head = policydbp->ocontexts[OCON_NODE];
5116 policydbp->ocontexts[OCON_NODE] = newc;
5129 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) {
5198 head = policydbp->ocontexts[OCON_NODE6];
5209 policydbp->ocontexts[OCON_NODE6] = newc;
5220 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) {
5250 head = policydbp->ocontexts[OCON_FSUSE];
5264 policydbp->ocontexts[OCON_FSUSE] = newc;
5275 if (policydbp->target_platform != SEPOL_TARGET_SELINUX) {
5289 for (genfs_p = NULL, genfs = policydbp->genfs;
5307 policydbp->genfs = newgenfs;
5458 cladatum = hashtab_search(policydbp->p_classes.table,
5478 levdatum = hashtab_search(policydbp->p_levels.table, id);