Home
last modified time | relevance | path

Searched refs:p_classes (Results 1 – 15 of 15) sorted by relevance

/third_party/selinux/checkpolicy/
Dcheckpolicy.c767 || tclass > policydb.p_classes.nprim) { in main()
777 p_classes. in main()
883 || tclass > policydb.p_classes.nprim) { in main()
891 p_classes. in main()
1088 || tclass > policydb.p_classes.nprim) { in main()
1096 p_classes. in main()
1184 || tclass > policydb.p_classes.nprim) { in main()
1192 p_classes. in main()
1235 || tclass > policydb.p_classes.nprim) { in main()
1243 p_classes. in main()
Dpolicy_define.c348 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()
603 cladatum = (class_datum_t *) hashtab_search(policydbp->p_classes.table, in define_av_perms()
3146 cladatum = hashtab_search(policydbp->p_classes.table, in define_role_trans()
3548 (class_datum_t *) hashtab_search(policydbp->p_classes.table, in define_constraint()
3687 (class_datum_t *) hashtab_search(policydbp->p_classes.table, in define_validatetrans()
5561 cladatum = hashtab_search(policydbp->p_classes.table, in define_genfs_context_helper()
[all …]
Dmodule_compiler.c826 datum = hashtab_search(policydbp->p_classes.table, class_id); in require_class()
1179 (class_datum_t *) hashtab_search(policydbp->p_classes.table, in is_perm_in_scope()
/third_party/selinux/libsepol/src/
Dservices.c922 if (!tclass || tclass > policydb->p_classes.nprim) { in context_struct_compute_av()
1043 if (!tclass || tclass > policydb->p_classes.nprim) { in sepol_validate_transition_reason_buffer()
1184 tclass_datum = hashtab_search(policydb->p_classes.table, in sepol_string_to_security_class()
1205 if (!tclass || tclass > policydb->p_classes.nprim) { in sepol_string_to_av_perm()
1348 if (tclass && tclass <= policydb->p_classes.nprim) in sepol_compute_sid()
1535 (class_datum_t *) hashtab_search(newp->p_classes.table, key); in validate_class()
1805 (policydb->p_classes.table, validate_class, &newpolicydb)) { in sepol_load_policy()
Dkernel_to_cil.c359 for (i=0; i < pdb->p_classes.nprim; i++) { in constraint_rules_to_strs()
384 for (i=0; i < pdb->p_classes.nprim; i++) { in validatetrans_rules_to_strs()
462 for (i=0; i < pdb->p_classes.nprim; i++) { in write_class_decl_rules_to_cil()
477 for (i=0; i < pdb->p_classes.nprim; i++) { in write_class_decl_rules_to_cil()
489 for (i=0; i < pdb->p_classes.nprim; i++) { in write_class_decl_rules_to_cil()
504 for (i=0; i < pdb->p_classes.nprim; i++) { in write_class_decl_rules_to_cil()
728 for (i=0; i < pdb->p_classes.nprim; i++) { in write_default_rules_to_cil()
739 for (i=0; i < pdb->p_classes.nprim; i++) { in write_default_rules_to_cil()
750 for (i=0; i < pdb->p_classes.nprim; i++) { in write_default_rules_to_cil()
765 for (i=0; i < pdb->p_classes.nprim; i++) { in write_default_rules_to_cil()
Dpolicydb_public.c212 return (hashtab_search(p->p.p_classes.table, PACKET_CLASS_NAME) == in sepol_policydb_compat_net()
Davrule_block.c203 (class_datum_t *) hashtab_search(p->p_classes.table, class_id); in is_perm_enabled()
Dkernel_to_conf.c359 for (i=0; i < pdb->p_classes.nprim; i++) { in constraint_rules_to_strs()
384 for (i=0; i < pdb->p_classes.nprim; i++) { in validatetrans_rules_to_strs()
431 for (i=0; i < pdb->p_classes.nprim; i++) { in write_class_decl_rules_to_conf()
552 for (i=0; i < pdb->p_classes.nprim; i++) { in write_class_and_common_rules_to_conf()
578 for (i=0; i < pdb->p_classes.nprim; i++) { in write_class_and_common_rules_to_conf()
703 for (i=0; i < pdb->p_classes.nprim; i++) { in write_default_rules_to_conf()
714 for (i=0; i < pdb->p_classes.nprim; i++) { in write_default_rules_to_conf()
725 for (i=0; i < pdb->p_classes.nprim; i++) { in write_default_rules_to_conf()
740 for (i=0; i < pdb->p_classes.nprim; i++) { in write_default_rules_to_conf()
Dpolicydb_validate.c42 if (validate_init(&flavors[SYM_CLASSES], p->p_class_val_to_name, p->p_classes.nprim)) in validate_array_init()
317 for (i = 0; i < p->p_classes.nprim; i++) { in validate_datum_arrays()
Dlink.c97 for (i = 0; mod->perm_map != NULL && i < mod->policy->p_classes.nprim; in policy_module_destroy()
255 new_class = hashtab_search(state->base->p_classes.table, id); in class_copy_callback()
306 ret = hashtab_insert(state->base->p_classes.table, in class_copy_callback()
315 new_class->s.value = ++(state->base->p_classes.nprim); in class_copy_callback()
2295 items = module->policy->p_classes.nprim; in prepare_module()
Dpolicydb.c1014 if (!value_isvalid(cladatum->s.value, p->p_classes.nprim)) in class_index()
1140 calloc(p->p_classes.nprim, sizeof(class_datum_t *)); in policydb_index_classes()
1146 calloc(p->p_classes.nprim, sizeof(char *)); in policydb_index_classes()
1150 if (hashtab_map(p->p_classes.table, class_index, p)) in policydb_index_classes()
1229 p->p_classes.nprim, p->te_avtab.nel, p->te_cond_avtab.nel); in policydb_index_others()
3629 if (!value_isvalid(rt->target_class, p->p_classes.nprim)) in range_read()
4146 tclass_datum = hashtab_search(policydb->p_classes.table, in policydb_string_to_security_class()
4161 if (!tclass || tclass > policydb->p_classes.nprim) in policydb_string_to_av_perm()
Dexpand.c478 state->out->p_classes.nprim++; in class_copy_callback()
494 hashtab_insert(state->out->p_classes.table, new_id, in class_copy_callback()
543 new_class = hashtab_search(state->out->p_classes.table, id); in constraint_copy_callback()
3030 (state.base->p_classes.table, class_copy_callback, &state)) { in expand_module()
3132 (state.base->p_classes.table, constraint_copy_callback, &state)) { in expand_module()
Dmls.c627 if (tclass && tclass <= policydb->p_classes.nprim) { in mls_compute_sid()
/third_party/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h525 #define p_classes symtab[SYM_CLASSES] macro
/third_party/selinux/libsepol/cil/src/
Dcil_binary.c114 *sepol_class = hashtab_search(pdb->p_classes.table, datum->fqn); in __cil_get_sepol_class_datum()
3985 if (class->s.value < 1 || class->s.value > pdb->p_classes.nprim) { in __cil_class_val_array_insert()
4086 policydb->p_class_val_to_name = cil_malloc(sizeof(char *) * policydb->p_classes.nprim); in __cil_policydb_val_arrays_create()
4087 policydb->class_val_to_struct = cil_malloc(sizeof(class_datum_t *) * policydb->p_classes.nprim); in __cil_policydb_val_arrays_create()
4088 rc = hashtab_map(policydb->p_classes.table, &__cil_class_val_array_insert, policydb); in __cil_policydb_val_arrays_create()