Home
last modified time | relevance | path

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

/external/checkpolicy/
Dcheckpolicy.c670 || tclass > policydb.p_classes.nprim) { in main()
680 p_classes. in main()
786 || tclass > policydb.p_classes.nprim) { in main()
794 p_classes. in main()
981 || tclass > policydb.p_classes.nprim) { in main()
989 p_classes. in main()
Dpolicy_define.c340 cladatum = hashtab_search(policydbp->p_classes.table, id); in read_classes()
466 cladatum = (class_datum_t *) hashtab_search(policydbp->p_classes.table, in define_av_perms()
2240 cladatum = hashtab_search(policydbp->p_classes.table, in define_role_trans()
2653 (class_datum_t *) hashtab_search(policydbp->p_classes.table, in define_constraint()
2793 (class_datum_t *) hashtab_search(policydbp->p_classes.table, in define_validatetrans()
4523 cladatum = hashtab_search(policydbp->p_classes.table, in define_range_trans()
Dmodule_compiler.c799 hashtab_search(policydbp->p_classes.table, in require_class()
1297 (class_datum_t *) hashtab_search(policydbp->p_classes.table, in is_perm_in_scope()
/external/libsepol/src/
Dpolicydb_public.c191 return (hashtab_search(p->p.p_classes.table, PACKET_CLASS_NAME) == in sepol_policydb_compat_net()
Davrule_block.c186 (class_datum_t *) hashtab_search(p->p_classes.table, class_id); in is_perm_enabled()
Dservices.c322 if (!tclass || tclass > policydb->p_classes.nprim) { in context_struct_compute_av()
436 if (!tclass || tclass > policydb->p_classes.nprim) { in sepol_validate_transition()
794 (class_datum_t *) hashtab_search(newp->p_classes.table, key); in validate_class()
1026 (policydb->p_classes.table, validate_class, &newpolicydb)) { in sepol_load_policy()
Dlink.c97 for (i = 0; mod->perm_map != NULL && i < mod->policy->p_classes.nprim; in policy_module_destroy()
220 new_class = hashtab_search(state->base->p_classes.table, id); in class_copy_callback()
270 ret = hashtab_insert(state->base->p_classes.table, in class_copy_callback()
278 new_class->s.value = ++(state->base->p_classes.nprim); in class_copy_callback()
2256 items = module->policy->p_classes.nprim; in prepare_module()
Dexpand.c394 state->out->p_classes.nprim++; in class_copy_callback()
404 hashtab_insert(state->out->p_classes.table, new_id, in class_copy_callback()
453 new_class = hashtab_search(state->out->p_classes.table, id); in constraint_copy_callback()
2884 (state.base->p_classes.table, class_copy_callback, &state)) { in expand_module()
2985 (state.base->p_classes.table, constraint_copy_callback, &state)) { in expand_module()
Dpolicydb.c785 if (!cladatum->s.value || cladatum->s.value > p->p_classes.nprim) in class_index()
901 malloc(p->p_classes.nprim * sizeof(class_datum_t *)); in policydb_index_classes()
907 malloc(p->p_classes.nprim * sizeof(char *)); in policydb_index_classes()
911 if (hashtab_map(p->p_classes.table, class_index, p)) in policydb_index_classes()
982 p->p_classes.nprim, p->te_avtab.nel, p->te_cond_avtab.nel); in policydb_index_others()
/external/libsepol/include/sepol/policydb/
Dpolicydb.h464 #define p_classes symtab[SYM_CLASSES] macro