Home
last modified time | relevance | path

Searched refs:ebitmap_get_bit (Results 1 – 18 of 18) 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.c59 if (!role || !ebitmap_get_bit(&role->cache, c->type - 1)) in context_is_valid()
70 if (!ebitmap_get_bit(&usrdatum->cache, c->role - 1)) in context_is_valid()
Dmodule_to_cil.c723 if (!ebitmap_get_bit(map, i)) { in ebitmap_to_cil()
853 if (!ebitmap_get_bit(pos, i)) { in cil_print_attr_strs()
865 if (!ebitmap_get_bit(neg, i)) { in cil_print_attr_strs()
991 if (ebitmap_get_bit(map, i)) in ebitmap_to_names()
1004 if (ebitmap_get_bit(map, i)) { in ebitmap_to_names()
1445 if (!ebitmap_get_bit(&rule->classes, i)) { in role_trans_to_cil()
1544 if (!ebitmap_get_bit(&rule->tclasses, i)) { in range_trans_to_cil()
2062 if (!ebitmap_get_bit(&order, i)) { in class_order_to_cil()
2167 if (!ebitmap_get_bit(&role->roles, i)) { in role_to_cil()
2286 if (!ebitmap_get_bit(&roles, i)) { in user_to_cil()
[all …]
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()
Dhierarchy.c112 if (ebitmap_get_bit(&p->attr_type_map[src - 1], parent - 1)) { in bounds_expand_rule()
299 if (ebitmap_get_bit(&p->attr_type_map[src - 1], child - 1)) { in bounds_check_rule()
Dexpand.c917 if (!ebitmap_get_bit(&levdatum->level->cat, i)) { in mls_semantic_level_expand()
2486 if (ebitmap_get_bit(r, i)) { in role_set_expand()
2580 if (ebitmap_get_bit(&neg_types, i)) in type_set_expand()
2593 && (!ebitmap_get_bit(&neg_types, i))) in type_set_expand()
2602 assert(!ebitmap_get_bit(t, i)); in type_set_expand()
2605 if (ebitmap_get_bit(t, i)) { in type_set_expand()
Dmls.c296 if (!ebitmap_get_bit(&levdatum->level->cat, i)) in mls_context_isvalid()
Dpolicydb.c1737 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()
96 if (ebitmap_get_bit(a->types, t->value)) { in cil_type_matches()
102 if (ebitmap_get_bit(a->types, t->value)) { in cil_type_matches()
Dcil_binary.c441 if (!ebitmap_get_bit(role->types, i)) continue; in cil_roletype_to_policydb()
652 if (!ebitmap_get_bit(cil_attr->types, i)) continue; in cil_typeattribute_to_bitmap()
748 if (!ebitmap_get_bit(user->roles, i)) { in cil_userrole_to_policydb()
1091 if (!ebitmap_get_bit(&src_bitmap, i)) continue; in __cil_type_rule_to_avtab()
1097 if (!ebitmap_get_bit(&tgt_bitmap, j)) continue; in __cil_type_rule_to_avtab()
1164 if (!ebitmap_get_bit(&src_bitmap, i)) continue; in __cil_typetransition_to_avtab()
1170 if (!ebitmap_get_bit(&tgt_bitmap, j)) continue; in __cil_typetransition_to_avtab()
1457 if (!ebitmap_get_bit(&src_bitmap, s)) continue; in __cil_avrule_to_avtab()
1488 if (!ebitmap_get_bit(&src_bitmap, s)) continue; in __cil_avrule_to_avtab()
1491 if (!ebitmap_get_bit(&tgt_bitmap, t)) continue; in __cil_avrule_to_avtab()
[all …]
Dcil_policy.c346 if (!ebitmap_get_bit(attr->users, i)) in __cil_userattribute_len()
458 if (!ebitmap_get_bit(attr->users, i)) in __cil_userattribute_to_string()
1090 if (ebitmap_get_bit(attribute->types, type->value)) { in cil_typeattributes_to_policy()
1122 if (!ebitmap_get_bit(permx->perms, i)) in cil_xperms_to_policy()
1509 if (ebitmap_get_bit(role->types, type->value)) { in cil_role_types_to_policy()
1540 if (ebitmap_get_bit(attribute->roles, role->value)) { in cil_roleattributes_to_policy()
1598 if (ebitmap_get_bit(user->roles, role->value)) { in cil_users_to_policy()
Dcil_post.c861 if (ebitmap_get_bit(&bitmap, cat->value)) { in __evaluate_cat_expression()
1354 if (!ebitmap_get_bit(attr->roles, i)) { in __cil_post_db_roletype_helper()
1449 if (!ebitmap_get_bit(u_attr->users, i)) { in __cil_post_db_userrole_helper()
1721 if (!ebitmap_get_bit(perms, value)) { in __perm_bits_to_list()
Dcil_verify.c747 if (!ebitmap_get_bit(user->roles, role->value)) { in __cil_verify_context()
759 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.h91 extern int ebitmap_get_bit(const ebitmap_t * e, unsigned int bit);
/external/selinux/checkpolicy/
Dmodule_compiler.c1145 if (ebitmap_get_bit(scope->class_perms_map + class_value - 1, in is_perm_in_scope_index()
Dpolicy_define.c2832 if (ebitmap_get_bit(&(rdatum->dominates), rdp->s.value - 1)) { in dominate_role_recheck()
4143 if (!ebitmap_get_bit(&levdatum->level->cat, i)) { in parse_categories()