Home
last modified time | relevance | path

Searched refs:class_perms_map (Results 1 – 8 of 8) sorted by relevance

/external/selinux/libsepol/src/
Davrule_block.c86 if (scope->class_perms_map) { in scope_index_destroy()
88 ebitmap_destroy(scope->class_perms_map + i); in scope_index_destroy()
91 free(scope->class_perms_map); in scope_index_destroy()
Dlink.c1684 if ((dest->class_perms_map = mallocarray(largest_mapped_class_value, in copy_scope_index()
1685 sizeof(*dest->class_perms_map))) == in copy_scope_index()
1690 ebitmap_init(dest->class_perms_map + i); in copy_scope_index()
1694 ebitmap_t *srcmap = src->class_perms_map + i; in copy_scope_index()
1696 dest->class_perms_map + module->map[SYM_CLASSES][i] - 1; in copy_scope_index()
2014 bitmap = decl->required.class_perms_map + i; in is_decl_requires_met()
Dpolicydb.c3943 scope_index->class_perms_map = NULL; in scope_index_read()
3946 if ((scope_index->class_perms_map = in scope_index_read()
3948 sizeof(*scope_index->class_perms_map))) == NULL) { in scope_index_read()
3952 if (ebitmap_read(scope_index->class_perms_map + i, fp) < 0) { in scope_index_read()
Dmodule_to_cil.c3605 sup_map = sup->class_perms_map[i]; in is_scope_superset()
3606 sub_map = sub->class_perms_map[i]; in is_scope_superset()
Dwrite.c2016 if (ebitmap_write(scope_index->class_perms_map + i, fp) == -1) { in scope_index_write()
/external/selinux/checkpolicy/
Dmodule_compiler.c746 ebitmap_t *new_map = realloc(scope->class_perms_map, in add_perm_to_class()
751 scope->class_perms_map = new_map; in add_perm_to_class()
753 ebitmap_init(scope->class_perms_map + i); in add_perm_to_class()
757 if (ebitmap_set_bit(scope->class_perms_map + class_value - 1, in add_perm_to_class()
1147 if (ebitmap_get_bit(scope->class_perms_map + class_value - 1, in is_perm_in_scope_index()
1385 realloc(dest_scope->class_perms_map, in copy_requirements()
1392 dest_scope->class_perms_map = new_map; in copy_requirements()
1395 ebitmap_init(dest_scope->class_perms_map + i); in copy_requirements()
1401 const ebitmap_t *src_bitmap = &src_scope->class_perms_map[i]; in copy_requirements()
1403 &dest_scope->class_perms_map[i]; in copy_requirements()
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h443 ebitmap_t *class_perms_map; member
/external/selinux/checkpolicy/test/
Ddismod.c554 class_perms_map in display_scope_index()