Home
last modified time | relevance | path

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

/external/selinux/checkpolicy/
Dcheckpolicy.c728 || tclass > policydb.p_classes.nprim) { in main()
738 p_classes. in main()
844 || tclass > policydb.p_classes.nprim) { in main()
852 p_classes. in main()
1041 || tclass > policydb.p_classes.nprim) { in main()
1049 p_classes. in main()
1137 || tclass > policydb.p_classes.nprim) { in main()
1147 p_classes. in main()
1190 || tclass > policydb.p_classes.nprim) { in main()
1200 p_classes. in main()
Dpolicy_define.c349 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()
604 cladatum = (class_datum_t *) hashtab_search(policydbp->p_classes.table, in define_av_perms()
3164 cladatum = hashtab_search(policydbp->p_classes.table, in define_role_trans()
3606 (class_datum_t *) hashtab_search(policydbp->p_classes.table, in define_constraint()
3748 (class_datum_t *) hashtab_search(policydbp->p_classes.table, in define_validatetrans()
5723 cladatum = hashtab_search(policydbp->p_classes.table, in define_range_trans()
Dmodule_compiler.c825 datum = hashtab_search(policydbp->p_classes.table, class_id); in require_class()
1178 (class_datum_t *) hashtab_search(policydbp->p_classes.table, in is_perm_in_scope()
/external/selinux/libsepol/src/
Dkernel_to_cil.c348 for (i=0; i < pdb->p_classes.nprim; i++) { in constraint_rules_to_strs()
373 for (i=0; i < pdb->p_classes.nprim; i++) { in validatetrans_rules_to_strs()
451 for (i=0; i < pdb->p_classes.nprim; i++) { in write_class_decl_rules_to_cil()
466 for (i=0; i < pdb->p_classes.nprim; i++) { in write_class_decl_rules_to_cil()
478 for (i=0; i < pdb->p_classes.nprim; i++) { in write_class_decl_rules_to_cil()
493 for (i=0; i < pdb->p_classes.nprim; i++) { in write_class_decl_rules_to_cil()
700 for (i=0; i < pdb->p_classes.nprim; i++) { in write_default_rules_to_cil()
711 for (i=0; i < pdb->p_classes.nprim; i++) { in write_default_rules_to_cil()
722 for (i=0; i < pdb->p_classes.nprim; i++) { in write_default_rules_to_cil()
737 for (i=0; i < pdb->p_classes.nprim; i++) { in write_default_rules_to_cil()
Dservices.c911 if (!tclass || tclass > policydb->p_classes.nprim) { in context_struct_compute_av()
1031 if (!tclass || tclass > policydb->p_classes.nprim) { in sepol_validate_transition()
1084 if (!tclass || tclass > policydb->p_classes.nprim) { in sepol_validate_transition_reason_buffer()
1225 tclass_datum = hashtab_search(policydb->p_classes.table, in sepol_string_to_security_class()
1246 if (!tclass || tclass > policydb->p_classes.nprim) { in sepol_string_to_av_perm()
1559 (class_datum_t *) hashtab_search(newp->p_classes.table, key); in validate_class()
1829 (policydb->p_classes.table, validate_class, &newpolicydb)) { in sepol_load_policy()
Dpolicydb_public.c208 return (hashtab_search(p->p.p_classes.table, PACKET_CLASS_NAME) == in sepol_policydb_compat_net()
Dkernel_to_conf.c348 for (i=0; i < pdb->p_classes.nprim; i++) { in constraint_rules_to_strs()
373 for (i=0; i < pdb->p_classes.nprim; i++) { in validatetrans_rules_to_strs()
420 for (i=0; i < pdb->p_classes.nprim; i++) { in write_class_decl_rules_to_conf()
523 for (i=0; i < pdb->p_classes.nprim; i++) { in write_class_and_common_rules_to_conf()
549 for (i=0; i < pdb->p_classes.nprim; i++) { in write_class_and_common_rules_to_conf()
671 for (i=0; i < pdb->p_classes.nprim; i++) { in write_default_rules_to_conf()
682 for (i=0; i < pdb->p_classes.nprim; i++) { in write_default_rules_to_conf()
693 for (i=0; i < pdb->p_classes.nprim; i++) { in write_default_rules_to_conf()
708 for (i=0; i < pdb->p_classes.nprim; i++) { in write_default_rules_to_conf()
Davrule_block.c202 (class_datum_t *) hashtab_search(p->p_classes.table, class_id); in is_perm_enabled()
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()
2321 items = module->policy->p_classes.nprim; in prepare_module()
Dexpand.c445 state->out->p_classes.nprim++; in class_copy_callback()
461 hashtab_insert(state->out->p_classes.table, new_id, in class_copy_callback()
510 new_class = hashtab_search(state->out->p_classes.table, id); in constraint_copy_callback()
3063 (state.base->p_classes.table, class_copy_callback, &state)) { in expand_module()
3164 (state.base->p_classes.table, constraint_copy_callback, &state)) { in expand_module()
Dmls.c631 if (tclass && tclass <= policydb->p_classes.nprim) { in mls_compute_sid()
Dpolicydb.c987 if (!cladatum->s.value || cladatum->s.value > p->p_classes.nprim) in class_index()
1114 calloc(p->p_classes.nprim, sizeof(class_datum_t *)); in policydb_index_classes()
1120 calloc(p->p_classes.nprim, sizeof(char *)); in policydb_index_classes()
1124 if (hashtab_map(p->p_classes.table, class_index, p)) in policydb_index_classes()
1203 p->p_classes.nprim, p->te_avtab.nel, p->te_cond_avtab.nel); in policydb_index_others()
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h523 #define p_classes symtab[SYM_CLASSES] macro
/external/selinux/libsepol/cil/src/
Dcil_binary.c119 *sepol_class = hashtab_search(pdb->p_classes.table, datum->fqn); in __cil_get_sepol_class_datum()
3968 if (class->s.value < 1 || class->s.value > pdb->p_classes.nprim) { in __cil_class_val_array_insert()
4069 policydb->p_class_val_to_name = cil_malloc(sizeof(char *) * policydb->p_classes.nprim); in __cil_policydb_val_arrays_create()
4070 policydb->class_val_to_struct = cil_malloc(sizeof(class_datum_t *) * policydb->p_classes.nprim); in __cil_policydb_val_arrays_create()
4071 rc = hashtab_map(policydb->p_classes.table, &__cil_class_val_array_insert, policydb); in __cil_policydb_val_arrays_create()