Home
last modified time | relevance | path

Searched refs:ebitmap_t (Results 1 – 25 of 32) sorted by relevance

12

/external/selinux/libsepol/include/sepol/policydb/
Debitmap.h40 } ebitmap_t; typedef
47 static inline unsigned int ebitmap_start(const ebitmap_t * e, in ebitmap_start()
55 static inline void ebitmap_init(ebitmap_t * e) in ebitmap_init()
83 extern int ebitmap_cmp(const ebitmap_t * e1, const ebitmap_t * e2);
84 extern int ebitmap_or(ebitmap_t * dst, const ebitmap_t * e1, const ebitmap_t * e2);
85 extern int ebitmap_union(ebitmap_t * dst, const ebitmap_t * e1);
86 extern int ebitmap_and(ebitmap_t *dst, const ebitmap_t *e1, const ebitmap_t *e2);
87 extern int ebitmap_xor(ebitmap_t *dst, const ebitmap_t *e1, const ebitmap_t *e2);
88 extern int ebitmap_not(ebitmap_t *dst, const ebitmap_t *e1, unsigned int maxbit);
89 extern int ebitmap_andnot(ebitmap_t *dst, const ebitmap_t *e1, const ebitmap_t *e2, unsigned int ma…
[all …]
Dpolicydb.h87 ebitmap_t types;
88 ebitmap_t negset;
95 ebitmap_t roles;
140 ebitmap_t dominates; /* set of roles dominated by this role */
142 ebitmap_t cache; /* This is an expanded set used for context validation during parsing */
147 ebitmap_t roles; /* roles with this attribute */
172 ebitmap_t stypes;
185 ebitmap_t types; /* types with this attribute */
210 ebitmap_t cache; /* This is an expanded set used for context validation during parsing */
307 ebitmap_t classes; /* process class, or new object class */
[all …]
Dexpand.h60 extern int convert_type_ebitmap(ebitmap_t * src, ebitmap_t * dst,
63 type_set_t * set, ebitmap_t * types,
65 extern int type_set_expand(type_set_t * set, ebitmap_t * t, policydb_t * p,
67 extern int role_set_expand(role_set_t * x, ebitmap_t * r, policydb_t * out, policydb_t * base, uint…
Dconstraint.h60 ebitmap_t names; /* names */
Dmls_types.h46 ebitmap_t cat; /* category set */
/external/selinux/libsepol/tests/
Dtest-ebitmap.c12 static int ebitmap_init_random(ebitmap_t *e, unsigned int length, int set_chance) in ebitmap_init_random()
35 ebitmap_t e; in test_ebitmap_init_destroy()
56 ebitmap_t e1, e2; in test_ebitmap_cmp()
134 ebitmap_t e; in test_ebitmap_set_and_get()
258 ebitmap_t e1, e2, e3, e4, e5, e6; in test_ebitmap_init_range()
289 ebitmap_t e1, e2, e3, e4; in test_ebitmap_or()
325 ebitmap_t dst; in test_ebitmap_or()
334 ebitmap_t dst; in test_ebitmap_or()
343 ebitmap_t dst; in test_ebitmap_or()
352 ebitmap_t dst; in test_ebitmap_or()
[all …]
Ddebug.h26 extern void print_ebitmap(ebitmap_t * bitmap, FILE * fp);
Ddebug.c27 void print_ebitmap(ebitmap_t * bitmap, FILE * fp) in print_ebitmap()
/external/selinux/libsepol/src/
Debitmap.c18 int ebitmap_or(ebitmap_t * dst, const ebitmap_t * e1, const ebitmap_t * e2) in ebitmap_or()
59 int ebitmap_union(ebitmap_t * dst, const ebitmap_t * e1) in ebitmap_union()
61 ebitmap_t tmp; in ebitmap_union()
72 int ebitmap_and(ebitmap_t *dst, const ebitmap_t *e1, const ebitmap_t *e2) in ebitmap_and()
113 int ebitmap_xor(ebitmap_t *dst, const ebitmap_t *e1, const ebitmap_t *e2) in ebitmap_xor()
162 int ebitmap_not(ebitmap_t *dst, const ebitmap_t *e1, unsigned int maxbit) in ebitmap_not()
209 int ebitmap_andnot(ebitmap_t *dst, const ebitmap_t *e1, const ebitmap_t *e2, unsigned int maxbit) in ebitmap_andnot()
212 ebitmap_t e3; in ebitmap_andnot()
224 unsigned int ebitmap_cardinality(const ebitmap_t *e1) in ebitmap_cardinality()
235 int ebitmap_hamming_distance(const ebitmap_t * e1, const ebitmap_t * e2) in ebitmap_hamming_distance()
[all …]
Dassertion.c169 ebitmap_t *sattr = &p->type_attr_map[stype]; in report_assertion_extended_permissions()
170 ebitmap_t *tattr = &p->type_attr_map[ttype]; in report_assertion_extended_permissions()
246 ebitmap_t src_matches, tgt_matches, self_matches; in report_assertion_avtab_matches()
371 ebitmap_t *sattr = &p->type_attr_map[stype]; in check_assertion_extended_permissions_avtab()
372 ebitmap_t *tattr = &p->type_attr_map[ttype]; in check_assertion_extended_permissions_avtab()
422 ebitmap_t src_matches, tgt_matches, self_matches; in check_assertion_extended_permissions()
501 ebitmap_t src_matches, tgt_matches; in check_assertion_notself_match()
529 ebitmap_t matches; in check_assertion_notself_match()
556 ebitmap_t src_matches; in check_assertion_self_match()
Dexpand.c59 static int map_ebitmap(ebitmap_t * src, ebitmap_t * dst, uint32_t * map) in map_ebitmap()
74 static int ebitmap_expand_roles(policydb_t *p, ebitmap_t *roles) in ebitmap_expand_roles()
79 ebitmap_t tmp; in ebitmap_expand_roles()
182 ebitmap_t tmp_union; in attr_convert_callback()
740 ebitmap_t mapped_roles; in role_remap_dominates()
770 ebitmap_t mapped_roles; in role_fix_callback()
835 ebitmap_t tmp_union_types; in role_copy_callback()
998 ebitmap_t tmp_union; in user_copy_callback()
1261 ebitmap_t roles, new_roles; in copy_role_allows()
1326 ebitmap_t roles, types; in copy_role_trans()
[all …]
Dlink.c961 static int ebitmap_convert(const ebitmap_t *src, ebitmap_t *dst, const uint32_t *map) in ebitmap_convert()
1016 ebitmap_t tmp; in role_set_or_convert()
1088 ebitmap_t e_tmp; in role_fix_callback()
1140 ebitmap_t e_tmp; in type_fix_callback()
1620 ebitmap_t *srcmap = src->scope + i; in copy_scope_index()
1621 ebitmap_t *destmap = dest->scope + i; in copy_scope_index()
1648 const ebitmap_t *srcmap = src->class_perms_map + i; in copy_scope_index()
1649 ebitmap_t *destmap = in copy_scope_index()
1936 const ebitmap_t *bitmap; in is_decl_requires_met()
Doptimize.c118 ebitmap_t *types_i = &p->attr_type_map[i]; in build_type_map()
121 const ebitmap_t *types_k; in build_type_map()
Dpolicydb_validate.c18 ebitmap_t gaps;
33 static int create_gap_ebitmap(char **val_to_name, uint32_t nprim, ebitmap_t *gaps) in create_gap_ebitmap()
118 static int validate_ebitmap(const ebitmap_t *map, const validate_t *flavor) in validate_ebitmap()
1646 const ebitmap_t *maps = p->type_attr_map; in validate_typeattr_map()
1666 const ebitmap_t *maps = p->attr_type_map; in validate_attrtype_map()
Dcontext.c40 ebitmap_t types, roles; in context_is_valid()
Dusers.c22 ebitmap_t *roles; in user_to_record()
/external/selinux/mcstrans/src/
Dmcstrans.c69 ebitmap_t cat;
70 ebitmap_t normal;
71 ebitmap_t inverse;
88 ebitmap_t def;
121 ebitmap_t cat;
131 ebitmap_t mask;
132 ebitmap_t cat;
177 parse_category(ebitmap_t *e, const char *raw, int allowinverse) in parse_category()
216 parse_ebitmap(ebitmap_t *e, ebitmap_t *def, const char *raw) { in parse_ebitmap()
443 ebitmap_t temp; in add_word()
[all …]
/external/selinux/libsepol/cil/src/
Dcil_internal.h465 ebitmap_t *roles;
474 ebitmap_t *users;
522 ebitmap_t *types;
529 ebitmap_t *roles;
560 ebitmap_t *types;
647 ebitmap_t *perms;
Dcil_post.c63 static int __cil_expr_to_bitmap(struct cil_list *expr, ebitmap_t *out, int max, struct cil_db *db);
64 static int __cil_expr_list_to_bitmap(struct cil_list *expr_list, ebitmap_t *out, int max, struct ci…
896 static int __cil_type_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *d… in __cil_type_to_bitmap()
948 static int __cil_user_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *d… in __cil_user_to_bitmap()
996 static int __cil_role_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *d… in __cil_role_to_bitmap()
1065 static int __cil_permx_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, __attribute__((… in __cil_permx_to_bitmap()
1088 static int __cil_perm_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, __attribute__((u… in __cil_perm_to_bitmap()
1106 ebitmap_t bitmap; in __evaluate_cat_expression()
1147 static int __cil_cat_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *db) in __cil_cat_to_bitmap()
1192 …_expr_range_to_bitmap_helper(struct cil_list_item *i1, struct cil_list_item *i2, ebitmap_t *bitmap) in __cil_cat_expr_range_to_bitmap_helper()
[all …]
Dcil_deny.c581 static int cil_datum_not(ebitmap_t *result, const struct cil_symtab_datum *d, int max) in cil_datum_not()
587 ebitmap_t e; in cil_datum_not()
619 static int cil_datums_and(ebitmap_t *result, const struct cil_symtab_datum *d1, const struct cil_sy… in cil_datums_and()
673 static int cil_datums_andnot(ebitmap_t *result, const struct cil_symtab_datum *d1, const struct cil… in cil_datums_andnot()
809 …ree_node *prev, struct cil_list *str_expr, struct cil_list *datum_expr, ebitmap_t *types, struct c… in cil_create_and_insert_attribute_and_set()
869 ebitmap_t *types;
885 …ab_datum *cil_check_for_previously_defined_attribute(struct cil_db *db, ebitmap_t *types, struct c… in cil_check_for_previously_defined_attribute()
918 ebitmap_t *types; in cil_create_attribute_all_and_not_d()
974 ebitmap_t *types; in cil_create_attribute_d1_and_not_d2()
1034 ebitmap_t *types; in cil_create_attribute_d1_and_d2()
Dcil_find.c82 static int cil_type_matches(ebitmap_t *matches, struct cil_symtab_datum *d1, struct cil_symtab_datu… in cil_type_matches()
133 ebitmap_t map; in cil_self_match_any()
174 ebitmap_t smap; in cil_notself_match_any()
214 ebitmap_t smap, tmap; in cil_other_match_any()
Dcil_binary.c146 static int __cil_expand_user(struct cil_symtab_datum *datum, ebitmap_t *new) in __cil_expand_user()
174 static int __cil_expand_role(struct cil_symtab_datum *datum, ebitmap_t *new) in __cil_expand_role()
200 static int __cil_expand_type(struct cil_symtab_datum *datum, ebitmap_t *new) in __cil_expand_type()
596 pdb->type_attr_map = cil_malloc(pdb->p_types.nprim * sizeof(ebitmap_t)); in __cil_typeattr_bitmap_init()
597 pdb->attr_type_map = cil_malloc(pdb->p_types.nprim * sizeof(ebitmap_t)); in __cil_typeattr_bitmap_init()
1101 ebitmap_t src_bitmap, tgt_bitmap; in __cil_type_rule_to_avtab()
1214 ebitmap_t src_bitmap, tgt_bitmap; in __cil_typetransition_to_avtab()
1491 ebitmap_t src_bitmap, tgt_bitmap; in __cil_avrule_to_avtab()
1686 static int __cil_permx_bitmap_to_sepol_xperms_list(uint32_t kind, ebitmap_t *xperms, struct cil_lis… in __cil_permx_bitmap_to_sepol_xperms_list()
1818 …_hashtable(hashtab_t h, uint16_t kind, uint32_t src, uint32_t tgt, uint32_t obj, ebitmap_t *xperms) in __cil_avrulex_xperm_to_hashtable()
[all …]
/external/selinux/checkpolicy/
Dmodule_compiler.c744 ebitmap_t *new_map = realloc(scope->class_perms_map, in add_perm_to_class()
1381 const ebitmap_t *src_bitmap = &src_scope->scope[i]; in copy_requirements()
1382 ebitmap_t *dest_bitmap = &dest_scope->scope[i]; in copy_requirements()
1390 ebitmap_t *new_map = in copy_requirements()
1407 const ebitmap_t *src_bitmap = &src_scope->class_perms_map[i]; in copy_requirements()
1408 ebitmap_t *dest_bitmap = in copy_requirements()
Dpolicy_define.c346 static int read_classes(ebitmap_t *e_classes) in read_classes()
1181 ebitmap_t attrs; in expand_attrib()
1656 ebitmap_t tclasses; in define_compute_type_helper()
2090 ebitmap_t tclasses; in define_te_avtab_xperms_helper()
2625 ebitmap_t tclasses; in define_te_avtab_helper()
3081 ebitmap_t e_types, e_roles, e_classes; in define_role_trans()
3273 ebitmap_t e_stypes, e_ttypes; in define_filename_trans()
3274 ebitmap_t e_tclasses; in define_filename_trans()
3492 ebitmap_t classmap; in define_constraint()
3660 ebitmap_t classmap; in define_validatetrans()
[all …]
/external/selinux/checkpolicy/test/
Ddismod.c128 static void render_access_bitmap(ebitmap_t * map, uint32_t class, in render_access_bitmap()
433 ebitmap_t *bitmap; in display_users()
527 static void display_class_set(ebitmap_t *classes, policydb_t *p, FILE *fp) in display_class_set()

12