Home
last modified time | relevance | path

Searched refs:ebitmap_get_bit (Results 1 – 17 of 17) sorted by relevance

/external/selinux/libsepol/src/
Debitmap.c79 if (ebitmap_get_bit(e1, i) && ebitmap_get_bit(e2, i)) { in ebitmap_and()
93 int val = ebitmap_get_bit(e1, i) ^ ebitmap_get_bit(e2, i); in ebitmap_xor()
106 int val = ebitmap_get_bit(e1, i); in ebitmap_not()
132 if (ebitmap_get_bit(e1, i)) in ebitmap_cardinality()
249 int ebitmap_get_bit(const ebitmap_t * e, unsigned int bit) in ebitmap_get_bit() function
Dcontext.c58 if (!ebitmap_get_bit(&role->cache, c->type - 1)) in context_is_valid()
69 if (!ebitmap_get_bit(&usrdatum->cache, c->role - 1)) in context_is_valid()
Dhierarchy.c112 if (ebitmap_get_bit(&p->attr_type_map[src - 1], parent - 1)) { in bounds_expand_rule()
124 if (ebitmap_get_bit(&p->attr_type_map[tgt - 1], parent - 1)) { in bounds_expand_rule()
311 if (ebitmap_get_bit(&p->attr_type_map[src - 1], child - 1)) { in bounds_check_rule()
332 if (ebitmap_get_bit(&p->attr_type_map[tgt - 1], child - 1)) { in bounds_check_rule()
Dservices.c229 rc = ebitmap_get_bit(types, i); in get_name_list()
244 rc = ebitmap_get_bit(types, i); in get_name_list()
517 s[++sp] = ebitmap_get_bit(&r1->dominates, val2 - 1); in constraint_expr_eval_reason()
522 s[++sp] = ebitmap_get_bit(&r2->dominates, val1 - 1); in constraint_expr_eval_reason()
527 s[++sp] = (!ebitmap_get_bit(&r1->dominates, val2 - 1) in constraint_expr_eval_reason()
528 && !ebitmap_get_bit(&r2->dominates, val1 - 1)); in constraint_expr_eval_reason()
660 s[++sp] = ebitmap_get_bit(&e->names, val1 - 1); in constraint_expr_eval_reason()
665 s[++sp] = !ebitmap_get_bit(&e->names, val1 - 1); in constraint_expr_eval_reason()
Dmodule_to_cil.c706 if (!ebitmap_get_bit(pos, i)) { in cil_print_attr_strs()
718 if (!ebitmap_get_bit(neg, i)) { in cil_print_attr_strs()
747 if (!ebitmap_get_bit(map, i)) { in ebitmap_to_cil()
773 if (!ebitmap_get_bit(&map, i)) { in ebitmap_to_names()
1369 if (!ebitmap_get_bit(&rule->classes, i)) { in role_trans_to_cil()
1471 if (!ebitmap_get_bit(&rule->tclasses, i)) { in range_trans_to_cil()
1990 if (!ebitmap_get_bit(&order, i)) { in class_order_to_cil()
2088 if (!ebitmap_get_bit(&role->roles, i)) { in role_to_cil()
2202 if (!ebitmap_get_bit(&roles, i)) { in user_to_cil()
2292 if (!ebitmap_get_bit(&order, i)) { in sens_order_to_cil()
[all …]
Dexpand.c916 if (!ebitmap_get_bit(&levdatum->level->cat, i)) { in mls_semantic_level_expand()
2470 if (ebitmap_get_bit(r, i)) { in role_set_expand()
2551 if (ebitmap_get_bit(&neg_types, i)) in type_set_expand()
2564 && (!ebitmap_get_bit(&neg_types, i))) in type_set_expand()
2573 assert(!ebitmap_get_bit(t, i)); in type_set_expand()
2576 if (ebitmap_get_bit(t, i)) { in type_set_expand()
Dmls.c294 if (!ebitmap_get_bit(&levdatum->level->cat, i)) in mls_context_isvalid()
Dpolicydb.c1633 if (ebitmap_get_bit(&x->roles, role - 1)) { in role_set_get_role()
/external/selinux/checkpolicy/test/
Ddismod.c92 if (ebitmap_get_bit(map, i)) { in render_access_bitmap()
134 if (!ebitmap_get_bit(&set->types, i)) in display_type_set()
144 if (!ebitmap_get_bit(&set->negset, i)) in display_type_set()
157 if (!ebitmap_get_bit(&set->types, i)) in display_type_set()
164 if (!ebitmap_get_bit(&set->negset, i)) in display_type_set()
192 if (!ebitmap_get_bit(&roles->roles, i)) in display_mod_role_set()
203 if (ebitmap_get_bit(&roles->roles, i)) in display_mod_role_set()
314 if (!ebitmap_get_bit(&type->types, i)) in display_type_callback()
351 if (ebitmap_get_bit(bitmap, j)) { in display_users()
443 if (!ebitmap_get_bit(classes, i)) in display_class_set()
[all …]
/external/selinux/libsepol/cil/src/
Dcil_find.c59 if (ebitmap_get_bit(a->types, t->value)) { in cil_type_match_any()
65 if (ebitmap_get_bit(a->types, t->value)) { in cil_type_match_any()
92 if (ebitmap_get_bit(a->types, t->value)) { in cil_type_matches()
98 if (ebitmap_get_bit(a->types, t->value)) { in cil_type_matches()
Dcil_binary.c438 if (!ebitmap_get_bit(role->types, i)) continue; in cil_roletype_to_policydb()
647 if (!ebitmap_get_bit(cil_attr->types, i)) continue; in cil_typeattribute_to_bitmap()
743 if (!ebitmap_get_bit(user->roles, i)) { in cil_userrole_to_policydb()
1081 if (!ebitmap_get_bit(&src_bitmap, i)) continue; in __cil_type_rule_to_avtab()
1087 if (!ebitmap_get_bit(&tgt_bitmap, j)) continue; in __cil_type_rule_to_avtab()
1154 if (!ebitmap_get_bit(&src_bitmap, i)) continue; in __cil_typetransition_to_avtab()
1160 if (!ebitmap_get_bit(&tgt_bitmap, j)) continue; in __cil_typetransition_to_avtab()
1424 if (!ebitmap_get_bit(&type_bitmap, i)) continue; in __cil_avrule_to_avtab()
1499 if (!ebitmap_get_bit(xperms, i)) continue; in __cil_permx_bitmap_to_sepol_xperms_list()
1507 if (IOC_FUNC(i) != 0xff && ebitmap_get_bit(xperms, i + 1)) { in __cil_permx_bitmap_to_sepol_xperms_list()
[all …]
Dcil_post.c858 if (ebitmap_get_bit(&bitmap, cat->value)) { in __evaluate_cat_expression()
1320 if (!ebitmap_get_bit(attr->roles, i)) { in __cil_post_db_roletype_helper()
1415 if (!ebitmap_get_bit(u_attr->users, i)) { in __cil_post_db_userrole_helper()
1687 if (!ebitmap_get_bit(perms, value)) { in __perm_bits_to_list()
Dcil_verify.c741 if (!ebitmap_get_bit(user->roles, role->value)) { in __cil_verify_context()
753 if (!ebitmap_get_bit(role->types, type->value)) { in __cil_verify_context()
/external/selinux/libsepol/tests/
Ddebug.c31 fprintf(fp, "%d", ebitmap_get_bit(bitmap, i)); in print_ebitmap()
/external/selinux/libsepol/include/sepol/policydb/
Debitmap.h90 extern int ebitmap_get_bit(const ebitmap_t * e, unsigned int bit);
/external/selinux/checkpolicy/
Dmodule_compiler.c1265 if (ebitmap_get_bit(scope->class_perms_map + class_value - 1, in is_perm_in_scope_index()
Dpolicy_define.c2805 if (ebitmap_get_bit(&(rdatum->dominates), rdp->s.value - 1)) { in dominate_role_recheck()
4100 if (!ebitmap_get_bit(&levdatum->level->cat, i)) { in parse_categories()