/aosp_15_r20/external/selinux/libsepol/tests/ |
H A D | test-ebitmap.c | 142 CU_ASSERT_EQUAL(ebitmap_get_bit(&e, 10), 0); in test_ebitmap_set_and_get() 150 CU_ASSERT_EQUAL(ebitmap_get_bit(&e, 10), 0); in test_ebitmap_set_and_get() 156 CU_ASSERT_EQUAL(ebitmap_get_bit(&e, 10), 1); in test_ebitmap_set_and_get() 162 CU_ASSERT_EQUAL(ebitmap_get_bit(&e, 100), 1); in test_ebitmap_set_and_get() 168 CU_ASSERT_EQUAL(ebitmap_get_bit(&e, 50), 1); in test_ebitmap_set_and_get() 174 CU_ASSERT_EQUAL(ebitmap_get_bit(&e, 1023), 1); in test_ebitmap_set_and_get() 180 CU_ASSERT_EQUAL(ebitmap_get_bit(&e, 1024), 1); in test_ebitmap_set_and_get() 186 CU_ASSERT_EQUAL(ebitmap_get_bit(&e, 1050), 1); in test_ebitmap_set_and_get() 211 CU_ASSERT_EQUAL(ebitmap_get_bit(&e, bit), 1); in test_ebitmap_set_and_get() 221 CU_ASSERT_EQUAL(ebitmap_get_bit(&e, 1024), 0); in test_ebitmap_set_and_get() [all …]
|
H A D | debug.c | 31 fprintf(fp, "%d", ebitmap_get_bit(bitmap, i)); in print_ebitmap()
|
/aosp_15_r20/external/selinux/checkpolicy/test/ |
H A D | dismod.c | 135 if (ebitmap_get_bit(map, i)) { in render_access_bitmap() 179 if (!ebitmap_get_bit(&set->types, i)) in display_type_set() 189 if (!ebitmap_get_bit(&set->negset, i)) in display_type_set() 202 if (!ebitmap_get_bit(&set->types, i)) in display_type_set() 209 if (!ebitmap_get_bit(&set->negset, i)) in display_type_set() 244 if (!ebitmap_get_bit(&roles->roles, i)) in display_mod_role_set() 255 if (ebitmap_get_bit(&roles->roles, i)) in display_mod_role_set() 403 if (!ebitmap_get_bit(&type->types, i)) in display_type_callback() 440 if (ebitmap_get_bit(bitmap, j)) { in display_users() 532 if (!ebitmap_get_bit(classes, i)) in display_class_set() [all …]
|
/aosp_15_r20/external/selinux/libsepol/cil/src/ |
H A D | cil_find.c | 60 if (ebitmap_get_bit(a->types, t->value)) { in cil_type_match_any() 66 if (ebitmap_get_bit(a->types, t->value)) { in cil_type_match_any() 103 if (ebitmap_get_bit(a->types, t->value)) { in cil_type_matches() 109 if (ebitmap_get_bit(a->types, t->value)) { in cil_type_matches()
|
H A D | cil_deny.c | 640 if (ebitmap_get_bit(a1->types, t2->value)) { in cil_datums_and() 651 if (ebitmap_get_bit(a2->types, t1->value)) { in cil_datums_and() 706 if (!ebitmap_get_bit(a2->types, t1->value)) { in cil_datums_andnot()
|
H A D | cil_policy.c | 1090 if (ebitmap_get_bit(attribute->types, type->value)) { in cil_typeattributes_to_policy() 1508 if (ebitmap_get_bit(role->types, type->value)) { in cil_role_types_to_policy() 1539 if (ebitmap_get_bit(attribute->roles, role->value)) { in cil_roleattributes_to_policy() 1597 if (ebitmap_get_bit(user->roles, role->value)) { in cil_users_to_policy()
|
H A D | cil_verify.c | 969 if (!ebitmap_get_bit(user->roles, role->value)) { in __cil_verify_context() 981 if (!ebitmap_get_bit(role->types, type->value)) { in __cil_verify_context()
|
H A D | cil_post.c | 1130 if (ebitmap_get_bit(&bitmap, cat->value)) { in __evaluate_cat_expression() 2050 if (!ebitmap_get_bit(perms, value)) { in __perm_bits_to_list()
|
H A D | cil_binary.c | 1706 if (IOC_FUNC(i) != 0xff && ebitmap_get_bit(xperms, i + 1)) { in __cil_permx_bitmap_to_sepol_xperms_list()
|
/aosp_15_r20/external/selinux/libsepol/src/ |
H A D | services.c | 227 rc = ebitmap_get_bit(types, i); in get_name_list() 242 rc = ebitmap_get_bit(types, i); in get_name_list() 536 s[++sp] = ebitmap_get_bit(&r1->dominates, val2 - 1); in constraint_expr_eval_reason() 541 s[++sp] = ebitmap_get_bit(&r2->dominates, val1 - 1); in constraint_expr_eval_reason() 546 s[++sp] = (!ebitmap_get_bit(&r1->dominates, val2 - 1) in constraint_expr_eval_reason() 547 && !ebitmap_get_bit(&r2->dominates, val1 - 1)); in constraint_expr_eval_reason() 679 s[++sp] = ebitmap_get_bit(&e->names, val1 - 1); in constraint_expr_eval_reason() 684 s[++sp] = !ebitmap_get_bit(&e->names, val1 - 1); in constraint_expr_eval_reason()
|
H A D | context.c | 58 if (!role || !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()
|
H A D | policydb_validate.c | 109 if (ebitmap_get_bit(&flavor->gaps, value-1)) in validate_value() 793 if (bool_xnor(p->class_val_to_struct[i], ebitmap_get_bit(&flavors[SYM_CLASSES].gaps, i))) in validate_datum_array_gaps() 798 if (bool_xnor(p->role_val_to_struct[i], ebitmap_get_bit(&flavors[SYM_ROLES].gaps, i))) in validate_datum_array_gaps() 808 if (bool_xnor(p->type_val_to_struct[i], ebitmap_get_bit(&flavors[SYM_TYPES].gaps, i))) in validate_datum_array_gaps() 814 if (bool_xnor(p->user_val_to_struct[i], ebitmap_get_bit(&flavors[SYM_USERS].gaps, i))) in validate_datum_array_gaps() 819 if (bool_xnor(p->bool_val_to_struct[i], ebitmap_get_bit(&flavors[SYM_BOOLS].gaps, i))) in validate_datum_array_gaps()
|
H A D | hierarchy.c | 112 if (ebitmap_get_bit(&p->attr_type_map[src - 1], parent - 1)) { in bounds_expand_rule() 297 if (ebitmap_get_bit(&p->attr_type_map[src - 1], child - 1)) { in bounds_check_rule()
|
H A D | expand.c | 953 if (!ebitmap_get_bit(&levdatum->level->cat, i)) { in mls_semantic_level_expand() 2509 if (ebitmap_get_bit(r, i)) { in role_set_expand() 2593 if (ebitmap_get_bit(&neg_types, i)) in type_set_expand() 2605 if (!ebitmap_get_bit(&neg_types, i)) in type_set_expand() 2614 assert(!ebitmap_get_bit(t, i)); in type_set_expand() 2617 if (ebitmap_get_bit(t, i)) { in type_set_expand()
|
H A D | mls.c | 295 if (!ebitmap_get_bit(&levdatum->level->cat, i)) in mls_context_isvalid()
|
H A D | ebitmap.c | 348 int ebitmap_get_bit(const ebitmap_t * e, unsigned int bit) in ebitmap_get_bit() function
|
H A D | kernel_to_conf.c | 1043 if (ebitmap_get_bit(cats, i+1)) in cats_ebitmap_len() 1084 if (ebitmap_get_bit(cats, i+1)) in cats_ebitmap_to_str()
|
H A D | kernel_to_cil.c | 1043 if (ebitmap_get_bit(cats, i+1)) in cats_ebitmap_len() 1093 if (ebitmap_get_bit(cats, i+1)) in cats_ebitmap_to_str()
|
H A D | policydb.c | 2585 if (ebitmap_get_bit(&datum->stypes, stype - 1)) { in policydb_filetrans_insert() 2700 if (ebitmap_get_bit(&otypes, datum->otype)) in filename_trans_check_datum()
|
/aosp_15_r20/system/sepolicy/tools/sepolicy-analyze/ |
H A D | neverallow.c | 145 if (ebitmap_get_bit(&typeset->negset, bit)) in read_typeset() 167 if (ebitmap_get_bit(&typeset->types, bit)) in read_typeset()
|
/aosp_15_r20/external/selinux/libsepol/include/sepol/policydb/ |
H A D | ebitmap.h | 95 extern int ebitmap_get_bit(const ebitmap_t * e, unsigned int bit);
|
/aosp_15_r20/system/core/property_service/property_info_checker/ |
H A D | property_info_checker.cpp | 119 if (!ebitmap_get_bit(&policy_db_->type_attr_map[type->s.value - 1], property_type_bit_)) { in CheckContext()
|
/aosp_15_r20/system/sepolicy/tools/ |
H A D | check_seapp.c | 355 return ebitmap_get_bit(attr_bits, attrib_dat->s.value - 1) != 0; in type_has_attribute()
|
/aosp_15_r20/external/selinux/checkpolicy/ |
H A D | module_compiler.c | 1153 if (ebitmap_get_bit(scope->class_perms_map + class_value - 1, in is_perm_in_scope_index()
|
H A D | policy_define.c | 4216 if (!ebitmap_get_bit(&levdatum->level->cat, i)) { in parse_categories()
|