/third_party/selinux/libsepol/tests/ |
D | test-ebitmap.c | 24 rc = ebitmap_set_bit(e, i, 1); in ebitmap_init_random() 63 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 10, 1), 0); in test_ebitmap_cmp() 65 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 10, 1), 0); in test_ebitmap_cmp() 68 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 63, 1), 0); in test_ebitmap_cmp() 70 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 63, 1), 0); in test_ebitmap_cmp() 73 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 64, 1), 0); in test_ebitmap_cmp() 75 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 64, 1), 0); in test_ebitmap_cmp() 78 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 1022, 1), 0); in test_ebitmap_cmp() 80 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 1022, 1), 0); in test_ebitmap_cmp() 83 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 1023, 1), 0); in test_ebitmap_cmp() [all …]
|
/third_party/selinux/libsepol/src/ |
D | expand.c | 68 if (ebitmap_set_bit(dst, map[i] - 1, 1)) in map_ebitmap() 86 if (ebitmap_set_bit(&tmp, bit, 1)) { in ebitmap_expand_roles() 168 if (ebitmap_set_bit(&state->out->permissive_map, new_type->s.value, 1)) { in type_copy_callback() 730 if (ebitmap_set_bit(&state->out->permissive_map, new_alias->s.value, 1)) { in alias_copy_callback() 960 if (ebitmap_set_bit(&l->cat, i, 1)) { in mls_semantic_level_expand() 2364 if (ebitmap_set_bit(&p->type_attr_map[i], value - 1, 1)) { in type_attr_map() 2370 if (ebitmap_set_bit(&p->type_attr_map[value - 1], value - 1, 0)) { in type_attr_map() 2375 if (ebitmap_set_bit(&p->attr_type_map[value - 1], value - 1, 1)) { in type_attr_map() 2464 if (ebitmap_set_bit(r, i, 1)) in role_set_expand() 2484 if (ebitmap_set_bit(&roles, i, 1)) in role_set_expand() [all …]
|
D | mls.c | 389 if (ebitmap_set_bit in mls_context_to_sid() 412 if (ebitmap_set_bit in mls_context_to_sid() 591 rc = ebitmap_set_bit(&bitmap, in mls_convert_context()
|
D | users.c | 172 if (ebitmap_set_bit(&(usrdatum->roles.roles), bit, 1)) in sepol_user_modify()
|
D | policydb.c | 2671 return ebitmap_set_bit(&datum->stypes, stype - 1, 1); in policydb_filetrans_insert() 2738 if (ebitmap_set_bit(&otypes, datum->otype, 1)) in filename_trans_check_datum() 3678 if (ebitmap_set_bit(&rtr->stypes.types, rt->source_type - 1, 1)) in range_read() 3681 if (ebitmap_set_bit(&rtr->ttypes.types, rt->target_type - 1, 1)) in range_read() 3684 if (ebitmap_set_bit(&rtr->tclasses, rt->target_class - 1, 1)) in range_read() 3787 if (ebitmap_set_bit(&tr->classes, p->process_class - 1, 1)) in role_trans_rule_read() 4557 if (ebitmap_set_bit in policydb_read() 4563 if (ebitmap_set_bit(&p->type_attr_map[i], i, 1)) in policydb_read() 4566 if (ebitmap_set_bit(&p->attr_type_map[i], i, 1)) in policydb_read()
|
D | ebitmap.c | 377 int ebitmap_set_bit(ebitmap_t * e, unsigned int bit, int value) in ebitmap_set_bit() function
|
D | link.c | 967 if (ebitmap_set_bit(dst, map[bit] - 1, 1)) in ebitmap_convert() 1627 if (ebitmap_set_bit in copy_scope_index() 2376 if (ebitmap_set_bit(&role->roles, i, 0)) in expand_role_attributes()
|
D | policydb_validate.c | 32 if (ebitmap_set_bit(gaps, i, 1)) in create_gap_ebitmap()
|
D | kernel_to_conf.c | 1605 rc = ebitmap_set_bit(&attrmap, i, 0); in write_type_attribute_sets_to_conf()
|
/third_party/selinux/checkpolicy/ |
D | policy_define.c | 273 if (ebitmap_set_bit(&policydbp->policycaps, capnum, TRUE)) { in define_polcap() 354 if (ebitmap_set_bit(e_classes, cladatum->s.value - 1, TRUE)) { in read_classes() 1114 if (ebitmap_set_bit(&levdatum->level->cat, i, TRUE)) { in define_level() 1183 if (ebitmap_set_bit(&attrs, attr->s.value - 1, TRUE)) { in expand_attrib() 1375 if (ebitmap_set_bit(&attr->types, (t->s.value - 1), TRUE)) { in define_typeattribute() 1525 if (ebitmap_set_bit(&attr->types, datum->s.value - 1, TRUE)) { in define_type() 1589 if (ebitmap_set_bit(&set->negset, t->s.value - 1, TRUE)) in set_types() 1592 if (ebitmap_set_bit(&set->types, t->s.value - 1, TRUE)) in set_types() 2786 if (ebitmap_set_bit(&attr->roles, (r->s.value - 1), TRUE)) { in define_role_attr() 2851 if (ebitmap_set_bit(&attr->roles, (r->s.value - 1), TRUE)) { in define_roleattribute() [all …]
|
D | module_compiler.c | 208 if (ebitmap_set_bit(decl->declared.scope + symbol_type, in declare_symbol() 378 ret2 = ebitmap_set_bit(&dest_role->dominates, dest_role->s.value - 1, 1); in declare_role() 727 if (ebitmap_set_bit(decl->required.scope + symbol_type, in require_symbol() 757 if (ebitmap_set_bit(scope->class_perms_map + class_value - 1, in add_perm_to_class() 912 ret = ebitmap_set_bit(&role->dominates, role->s.value - 1, 1); in require_role_or_attribute()
|
/third_party/selinux/libsepol/cil/src/ |
D | cil_find.c | 92 ebitmap_set_bit(matches, t1->value, 1); in cil_type_matches() 98 ebitmap_set_bit(matches, t->value, 1); in cil_type_matches() 104 ebitmap_set_bit(matches, t->value, 1); in cil_type_matches()
|
D | cil_post.c | 906 if (ebitmap_set_bit(bitmap, type->value, 1)) { in __cil_type_to_bitmap() 913 if (ebitmap_set_bit(bitmap, type->value, 1)) { in __cil_type_to_bitmap() 961 if (ebitmap_set_bit(bitmap, user->value, 1)) { in __cil_user_to_bitmap() 1005 if (ebitmap_set_bit(bitmap, role->value, 1)) { in __cil_role_to_bitmap() 1069 if (ebitmap_set_bit(bitmap, (unsigned int)val, 1)) { in __cil_permx_to_bitmap() 1087 if (ebitmap_set_bit(bitmap, value, 1)) { in __cil_perm_to_bitmap() 1156 if (ebitmap_set_bit(bitmap, cat->value, 1)) { in __cil_cat_to_bitmap() 1165 if (ebitmap_set_bit(bitmap, cat->value, 1)) { in __cil_cat_to_bitmap() 1172 if (ebitmap_set_bit(bitmap, cat->value, 1)) { in __cil_cat_to_bitmap() 1613 if (ebitmap_set_bit(role->types, type->value, 1)) { in __cil_role_assign_types() [all …]
|
D | cil_binary.c | 160 if (ebitmap_set_bit(new, user->value, 1)) { in __cil_expand_user() 186 if (ebitmap_set_bit(new, role->value, 1)) { in __cil_expand_role() 212 if (ebitmap_set_bit(new, type->value, 1)) { in __cil_expand_type() 384 if (ebitmap_set_bit(&sepol_role->dominates, value - 1, 1)) { in cil_role_to_policydb() 439 if (ebitmap_set_bit(&sepol_role->types.types, sepol_type->s.value - 1, 1)) { in cil_roletype_to_policydb() 543 if (ebitmap_set_bit(&pdb->permissive_map, sepol_type->s.value, 1)) { in cil_typepermissive_to_policydb() 601 if (ebitmap_set_bit(&pdb->type_attr_map[i], i, 1)) { in __cil_typeattr_bitmap_init() 606 if (ebitmap_set_bit(&pdb->attr_type_map[i], i, 1)) { in __cil_typeattr_bitmap_init() 648 ebitmap_set_bit(&pdb->type_attr_map[sepol_type->s.value - 1], value - 1, 1); in cil_typeattribute_to_bitmap() 649 ebitmap_set_bit(&pdb->attr_type_map[value - 1], sepol_type->s.value - 1, 1); in cil_typeattribute_to_bitmap() [all …]
|
D | cil.c | 1495 rc = ebitmap_set_bit(cats_ebitmap, cat->value, 1); in cil_cats_to_ebitmap() 1502 rc = ebitmap_set_bit(cats_ebitmap, cat->value, 1); in cil_cats_to_ebitmap()
|
/third_party/selinux/ |
D | libsepol.map | 56 "ebitmap_set_bit";
|
/third_party/selinux/libsepol/include/sepol/policydb/ |
D | ebitmap.h | 96 extern int ebitmap_set_bit(ebitmap_t * e, unsigned int bit, int value);
|