/external/selinux/libsepol/include/sepol/policydb/ |
D | ebitmap.h | 40 } ebitmap_t; typedef 46 static inline unsigned int ebitmap_start(const ebitmap_t * e, in ebitmap_start() 54 static inline void ebitmap_init(ebitmap_t * e) in ebitmap_init() 82 extern int ebitmap_cmp(const ebitmap_t * e1, const ebitmap_t * e2); 83 extern int ebitmap_or(ebitmap_t * dst, const ebitmap_t * e1, const ebitmap_t * e2); 84 extern int ebitmap_union(ebitmap_t * dst, const ebitmap_t * e1); 85 extern int ebitmap_and(ebitmap_t *dst, ebitmap_t *e1, ebitmap_t *e2); 86 extern int ebitmap_xor(ebitmap_t *dst, ebitmap_t *e1, ebitmap_t *e2); 87 extern int ebitmap_not(ebitmap_t *dst, ebitmap_t *e1, unsigned int maxbit); 88 extern int ebitmap_andnot(ebitmap_t *dst, ebitmap_t *e1, ebitmap_t *e2, unsigned int maxbit); [all …]
|
D | expand.h | 60 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…
|
D | policydb.h | 87 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 */ 184 ebitmap_t types; /* types with this attribute */ 209 ebitmap_t cache; /* This is an expanded set used for context validation during parsing */ 304 ebitmap_t classes; /* process class, or new object class */ 327 ebitmap_t tclasses; [all …]
|
D | constraint.h | 61 ebitmap_t names; /* names */
|
D | mls_types.h | 46 ebitmap_t cat; /* category set */
|
/external/selinux/libsepol/src/ |
D | ebitmap.c | 18 int ebitmap_or(ebitmap_t * dst, const ebitmap_t * e1, const ebitmap_t * e2) in ebitmap_or() 61 int ebitmap_union(ebitmap_t * dst, const ebitmap_t * e1) in ebitmap_union() 63 ebitmap_t tmp; in ebitmap_union() 74 int ebitmap_and(ebitmap_t *dst, ebitmap_t *e1, ebitmap_t *e2) in ebitmap_and() 88 int ebitmap_xor(ebitmap_t *dst, ebitmap_t *e1, ebitmap_t *e2) in ebitmap_xor() 101 int ebitmap_not(ebitmap_t *dst, ebitmap_t *e1, unsigned int maxbit) in ebitmap_not() 114 int ebitmap_andnot(ebitmap_t *dst, ebitmap_t *e1, ebitmap_t *e2, unsigned int maxbit) in ebitmap_andnot() 116 ebitmap_t e3; in ebitmap_andnot() 128 unsigned int ebitmap_cardinality(ebitmap_t *e1) in ebitmap_cardinality() 137 int ebitmap_hamming_distance(ebitmap_t * e1, ebitmap_t * e2) in ebitmap_hamming_distance() [all …]
|
D | optimize.c | 35 static ebitmap_t *build_type_map(const policydb_t *p) in build_type_map() 38 ebitmap_t *map = malloc(p->p_types.nprim * sizeof(ebitmap_t)); in build_type_map() 48 ebitmap_t *types_i = &p->attr_type_map[i]; in build_type_map() 52 ebitmap_t *types_k = &p->attr_type_map[k]; in build_type_map() 69 static void destroy_type_map(const policydb_t *p, ebitmap_t *type_map) in destroy_type_map() 126 const ebitmap_t *type_map, unsigned char not_cond) in is_avrule_redundant() 180 const ebitmap_t *type_map) in is_cond_rule_redundant() 217 static void optimize_avtab(policydb_t *p, const ebitmap_t *type_map) in optimize_avtab() 246 policydb_t *p, const ebitmap_t *type_map) in optimize_cond_av_list() 295 static void optimize_cond_avtab(policydb_t *p, const ebitmap_t *type_map) in optimize_cond_avtab() [all …]
|
D | assertion.c | 150 ebitmap_t *sattr = &p->type_attr_map[stype]; in report_assertion_extended_permissions() 151 ebitmap_t *tattr = &p->type_attr_map[ttype]; in report_assertion_extended_permissions() 217 ebitmap_t src_matches, tgt_matches, self_matches, matches; in report_assertion_avtab_matches() 330 ebitmap_t *sattr = &p->type_attr_map[stype]; in check_assertion_extended_permissions_avtab() 331 ebitmap_t *tattr = &p->type_attr_map[ttype]; in check_assertion_extended_permissions_avtab() 380 ebitmap_t src_matches, tgt_matches, self_matches, matches; in check_assertion_extended_permissions() 472 ebitmap_t match; in check_assertion_avtab_match()
|
D | expand.c | 59 static int map_ebitmap(ebitmap_t * src, ebitmap_t * dst, uint32_t * map) in map_ebitmap() 150 ebitmap_t tmp_union; in attr_convert_callback() 705 ebitmap_t mapped_roles; in role_remap_dominates() 735 ebitmap_t mapped_roles; in role_fix_callback() 800 ebitmap_t tmp_union_types; in role_copy_callback() 959 ebitmap_t tmp_union; in user_copy_callback() 1222 ebitmap_t roles, new_roles; in copy_role_allows() 1287 ebitmap_t roles, types; in copy_role_trans() 1377 ebitmap_t stypes, ttypes; in expand_filename_trans() 1544 ebitmap_t stypes, ttypes; in expand_range_trans() [all …]
|
D | link.c | 1014 ebitmap_t tmp; in role_set_or_convert() 1093 ebitmap_t e_tmp; in role_fix_callback() 1157 ebitmap_t e_tmp; in type_fix_callback() 1660 ebitmap_t *srcmap = src->scope + i; in copy_scope_index() 1661 ebitmap_t *destmap = dest->scope + i; in copy_scope_index() 1692 ebitmap_t *srcmap = src->class_perms_map + i; in copy_scope_index() 1693 ebitmap_t *destmap = in copy_scope_index() 1983 ebitmap_t *bitmap; in is_decl_requires_met()
|
D | context.c | 40 ebitmap_t types, roles; in context_is_valid()
|
D | users.c | 22 ebitmap_t *roles; in user_to_record()
|
D | mls.c | 557 ebitmap_t bitmap; in mls_convert_context()
|
D | write.c | 62 static int ebitmap_write(ebitmap_t * e, struct policy_file *fp) in ebitmap_write() 1120 ebitmap_t empty; in role_write() 1787 static int only_process(ebitmap_t *in) in only_process()
|
D | services.c | 215 ebitmap_t *types; in get_name_list() 907 ebitmap_t *sattr, *tattr; in context_struct_compute_av()
|
/external/selinux/mcstrans/src/ |
D | mcstrans.c | 70 ebitmap_t cat; 71 ebitmap_t normal; 72 ebitmap_t inverse; 89 ebitmap_t def; 122 ebitmap_t cat; 132 ebitmap_t mask; 133 ebitmap_t cat; 178 parse_category(ebitmap_t *e, const char *raw, int allowinverse) in parse_category() 217 parse_ebitmap(ebitmap_t *e, ebitmap_t *def, const char *raw) { in parse_ebitmap() 444 ebitmap_t temp; in add_word() [all …]
|
/external/selinux/libsepol/cil/src/ |
D | cil_post.c | 53 static int __cil_expr_to_bitmap(struct cil_list *expr, ebitmap_t *out, int max, struct cil_db *db); 54 static int __cil_expr_list_to_bitmap(struct cil_list *expr_list, ebitmap_t *out, int max, struct ci… 875 static int __cil_type_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *d… in __cil_type_to_bitmap() 927 static int __cil_user_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *d… in __cil_user_to_bitmap() 975 static int __cil_role_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *d… in __cil_role_to_bitmap() 1044 static int __cil_permx_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, __attribute__((… in __cil_permx_to_bitmap() 1067 static int __cil_perm_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, __attribute__((u… in __cil_perm_to_bitmap() 1085 ebitmap_t bitmap; in __evaluate_cat_expression() 1126 static int __cil_cat_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *db) in __cil_cat_to_bitmap() 1171 …_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 …]
|
D | cil_internal.h | 443 ebitmap_t *roles; 452 ebitmap_t *users; 497 ebitmap_t *types; 504 ebitmap_t *roles; 534 ebitmap_t *types; 624 ebitmap_t *perms;
|
D | cil_binary.c | 149 static int __cil_expand_user(struct cil_symtab_datum *datum, ebitmap_t *new) in __cil_expand_user() 177 static int __cil_expand_role(struct cil_symtab_datum *datum, ebitmap_t *new) in __cil_expand_role() 203 static int __cil_expand_type(struct cil_symtab_datum *datum, ebitmap_t *new) in __cil_expand_type() 598 pdb->type_attr_map = cil_malloc(pdb->p_types.nprim * sizeof(ebitmap_t)); in __cil_typeattr_bitmap_init() 599 pdb->attr_type_map = cil_malloc(pdb->p_types.nprim * sizeof(ebitmap_t)); in __cil_typeattr_bitmap_init() 1079 ebitmap_t src_bitmap, tgt_bitmap; in __cil_type_rule_to_avtab() 1137 ebitmap_t src_bitmap, tgt_bitmap; in __cil_typetransition_to_avtab() 1428 ebitmap_t src_bitmap, tgt_bitmap; in __cil_avrule_to_avtab() 1572 int __cil_permx_bitmap_to_sepol_xperms_list(ebitmap_t *xperms, struct cil_list **xperms_list) in __cil_permx_bitmap_to_sepol_xperms_list() 1695 …_hashtable(hashtab_t h, uint16_t kind, uint32_t src, uint32_t tgt, uint32_t obj, ebitmap_t *xperms) in __cil_avrulex_ioctl_to_hashtable() [all …]
|
D | cil_find.c | 81 static int cil_type_matches(ebitmap_t *matches, struct cil_symtab_datum *d1, struct cil_symtab_datu… in cil_type_matches() 126 ebitmap_t map; in cil_self_match_any()
|
/external/selinux/libsepol/tests/ |
D | debug.h | 26 extern void print_ebitmap(ebitmap_t * bitmap, FILE * fp);
|
D | debug.c | 27 void print_ebitmap(ebitmap_t * bitmap, FILE * fp) in print_ebitmap()
|
/external/selinux/checkpolicy/ |
D | module_compiler.c | 745 ebitmap_t *new_map = realloc(scope->class_perms_map, in add_perm_to_class() 1374 ebitmap_t *src_bitmap = &src_scope->scope[i]; in copy_requirements() 1375 ebitmap_t *dest_bitmap = &dest_scope->scope[i]; in copy_requirements() 1383 ebitmap_t *new_map = in copy_requirements() 1400 ebitmap_t *src_bitmap = &src_scope->class_perms_map[i]; in copy_requirements() 1401 ebitmap_t *dest_bitmap = in copy_requirements()
|
D | policy_define.c | 342 static int read_classes(ebitmap_t *e_classes) in read_classes() 1154 ebitmap_t attrs; in expand_attrib() 1618 ebitmap_t tclasses; in define_compute_type_helper() 2041 ebitmap_t tclasses; in define_te_avtab_xperms_helper() 2502 ebitmap_t tclasses; in define_te_avtab_helper() 2915 ebitmap_t types; in dominate_role_recheck() 3004 ebitmap_t types; in define_role_dom() 3114 ebitmap_t e_types, e_roles, e_classes; in define_role_trans() 3304 ebitmap_t e_stypes, e_ttypes; in define_filename_trans() 3305 ebitmap_t e_tclasses; in define_filename_trans() [all …]
|
/external/selinux/checkpolicy/test/ |
D | dismod.c | 85 static void render_access_bitmap(ebitmap_t * map, uint32_t class, in render_access_bitmap() 369 ebitmap_t *bitmap; in display_users() 463 void display_class_set(ebitmap_t *classes, policydb_t *p, FILE *fp) in display_class_set()
|