/external/selinux/mcstrans/src/ |
D | mls_level.c | 49 if (ebitmap_set_bit(&l->cat, bit, 1)) in mls_level_from_string() 59 if (ebitmap_set_bit in mls_level_from_string()
|
D | mcstrans.c | 202 if (ebitmap_set_bit(e, low, inverse ? 0 : 1) < 0) in parse_category()
|
/external/selinux/libsepol/src/ |
D | ebitmap.c | 80 int rc = ebitmap_set_bit(dst, i, 1); in ebitmap_and() 94 int rc = ebitmap_set_bit(dst, i, val); in ebitmap_xor() 107 int rc = ebitmap_set_bit(dst, i, !val); in ebitmap_not() 270 int ebitmap_set_bit(ebitmap_t * e, unsigned int bit, int value) in ebitmap_set_bit() function
|
D | expand.c | 70 if (ebitmap_set_bit(dst, map[i] - 1, 1)) in map_ebitmap() 138 if (ebitmap_set_bit(&state->out->permissive_map, new_type->s.value, 1)) { in type_copy_callback() 697 if (ebitmap_set_bit(&state->out->permissive_map, new_alias->s.value, 1)) { in alias_copy_callback() 925 if (ebitmap_set_bit(&l->cat, i, 1)) { in mls_semantic_level_expand() 2362 if (ebitmap_set_bit(&p->type_attr_map[i], value - 1, 1)) { in type_attr_map() 2368 if (ebitmap_set_bit(&p->type_attr_map[value - 1], value - 1, 0)) { in type_attr_map() 2373 if (ebitmap_set_bit(&p->attr_type_map[value - 1], value - 1, 1)) { in type_attr_map() 2462 if (ebitmap_set_bit(r, i, 1)) in role_set_expand() 2483 if (ebitmap_set_bit(&roles, i, 1)) in role_set_expand() 2497 if (ebitmap_set_bit(r, i, 1)) in role_set_expand() [all …]
|
D | link.c | 968 if (ebitmap_set_bit in type_set_convert() 977 if (ebitmap_set_bit in type_set_convert() 1025 if (ebitmap_set_bit in role_set_or_convert() 1121 if (ebitmap_set_bit in role_fix_callback() 1140 if (ebitmap_set_bit in role_fix_callback() 1195 if (ebitmap_set_bit in type_fix_callback() 1394 if (ebitmap_set_bit(&new_rule->classes, in copy_role_trans_list() 1536 if (ebitmap_set_bit in copy_range_trans_list() 1684 if (ebitmap_set_bit in copy_scope_index() 1715 ebitmap_set_bit(destmap, module->perm_map[i][j] - 1, in copy_scope_index() [all …]
|
D | mls.c | 391 if (ebitmap_set_bit in mls_context_to_sid() 414 if (ebitmap_set_bit in mls_context_to_sid() 594 rc = ebitmap_set_bit(&bitmap, in mls_convert_context()
|
D | genusers.c | 174 if (ebitmap_set_bit
|
D | users.c | 175 if (ebitmap_set_bit in sepol_user_modify()
|
D | policydb.c | 3449 if (ebitmap_set_bit(&rtr->stypes.types, rt->source_type - 1, 1)) in range_read() 3452 if (ebitmap_set_bit(&rtr->ttypes.types, rt->target_type - 1, 1)) in range_read() 3455 if (ebitmap_set_bit(&rtr->tclasses, rt->target_class - 1, 1)) in range_read() 3556 if (ebitmap_set_bit(&tr->classes, SECCLASS_PROCESS - 1, 1)) in role_trans_rule_read() 4246 if (ebitmap_set_bit in policydb_read() 4252 if (ebitmap_set_bit(&p->type_attr_map[i], i, 1)) in policydb_read() 4255 if (ebitmap_set_bit(&p->attr_type_map[i], i, 1)) in policydb_read()
|
D | kernel_to_conf.c | 1528 rc = ebitmap_set_bit(&attrmap, i, 0); in write_type_attribute_sets_to_conf()
|
/external/selinux/libsepol/cil/src/ |
D | cil_post.c | 892 if (ebitmap_set_bit(bitmap, type->value, 1)) { in __cil_type_to_bitmap() 899 if (ebitmap_set_bit(bitmap, type->value, 1)) { in __cil_type_to_bitmap() 947 if (ebitmap_set_bit(bitmap, user->value, 1)) { in __cil_user_to_bitmap() 991 if (ebitmap_set_bit(bitmap, role->value, 1)) { in __cil_role_to_bitmap() 1055 if (ebitmap_set_bit(bitmap, (unsigned int)val, 1)) { in __cil_permx_to_bitmap() 1073 if (ebitmap_set_bit(bitmap, value, 1)) { in __cil_perm_to_bitmap() 1142 if (ebitmap_set_bit(bitmap, cat->value, 1)) { in __cil_cat_to_bitmap() 1151 if (ebitmap_set_bit(bitmap, cat->value, 1)) { in __cil_cat_to_bitmap() 1158 if (ebitmap_set_bit(bitmap, cat->value, 1)) { in __cil_cat_to_bitmap() 1203 if (ebitmap_set_bit(bitmap, i, 1)) { in __cil_cat_expr_range_to_bitmap_helper() [all …]
|
D | cil_find.c | 91 ebitmap_set_bit(matches, t1->value, 1); in cil_type_matches() 97 ebitmap_set_bit(matches, t->value, 1); in cil_type_matches() 103 ebitmap_set_bit(matches, t->value, 1); in cil_type_matches()
|
D | cil_binary.c | 165 if (ebitmap_set_bit(new, user->value, 1)) { in __cil_expand_user() 191 if (ebitmap_set_bit(new, role->value, 1)) { in __cil_expand_role() 217 if (ebitmap_set_bit(new, type->value, 1)) { in __cil_expand_type() 389 if (ebitmap_set_bit(&sepol_role->dominates, value - 1, 1)) { in cil_role_to_policydb() 446 if (ebitmap_set_bit(&sepol_role->types.types, sepol_type->s.value - 1, 1)) { in cil_roletype_to_policydb() 550 if (ebitmap_set_bit(&pdb->permissive_map, sepol_type->s.value, 1)) { in cil_typepermissive_to_policydb() 608 if (ebitmap_set_bit(&pdb->type_attr_map[i], i, 1)) { in __cil_typeattr_bitmap_init() 613 if (ebitmap_set_bit(&pdb->attr_type_map[i], i, 1)) { in __cil_typeattr_bitmap_init() 657 ebitmap_set_bit(&pdb->type_attr_map[sepol_type->s.value - 1], value - 1, 1); in cil_typeattribute_to_bitmap() 658 ebitmap_set_bit(&pdb->attr_type_map[value - 1], sepol_type->s.value - 1, 1); in cil_typeattribute_to_bitmap() [all …]
|
D | cil.c | 1282 rc = ebitmap_set_bit(cats_ebitmap, cat->value, 1); in cil_cats_to_ebitmap() 1289 rc = ebitmap_set_bit(cats_ebitmap, cat->value, 1); in cil_cats_to_ebitmap()
|
/external/selinux/checkpolicy/ |
D | policy_define.c | 275 if (ebitmap_set_bit(&policydbp->policycaps, capnum, TRUE)) { in define_polcap() 356 if (ebitmap_set_bit(e_classes, cladatum->s.value - 1, TRUE)) { in read_classes() 1111 if (ebitmap_set_bit(&levdatum->level->cat, i, TRUE)) { in define_level() 1185 if (ebitmap_set_bit(&attrs, attr->s.value - 1, TRUE)) { in expand_attrib() 1380 if (ebitmap_set_bit(&attr->types, (t->s.value - 1), TRUE)) { in define_typeattribute() 1530 if (ebitmap_set_bit(&attr->types, datum->s.value - 1, TRUE)) { in define_type() 1594 if (ebitmap_set_bit(&set->negset, t->s.value - 1, TRUE)) in set_types() 1597 if (ebitmap_set_bit(&set->types, t->s.value - 1, TRUE)) in set_types() 2788 if (ebitmap_set_bit(&attr->roles, (r->s.value - 1), TRUE)) { in define_role_attr() 2853 if (ebitmap_set_bit(&attr->roles, (r->s.value - 1), TRUE)) { in define_roleattribute() [all …]
|
D | module_compiler.c | 207 if (ebitmap_set_bit(decl->declared.scope + symbol_type, in declare_symbol() 377 ret2 = ebitmap_set_bit(&dest_role->dominates, dest_role->s.value - 1, 1); in declare_role() 726 if (ebitmap_set_bit(decl->required.scope + symbol_type, in require_symbol() 756 if (ebitmap_set_bit(scope->class_perms_map + class_value - 1, in add_perm_to_class() 902 ret = ebitmap_set_bit(&role->dominates, role->s.value - 1, 1); in require_role_or_attribute()
|
/external/selinux/libsepol/include/sepol/policydb/ |
D | ebitmap.h | 92 extern int ebitmap_set_bit(ebitmap_t * e, unsigned int bit, int value);
|