/external/selinux/libsepol/cil/src/ |
D | cil_list.h | 35 struct cil_list { struct 51 void cil_list_init(struct cil_list **list, enum cil_flavor flavor); argument 52 void cil_list_destroy (struct cil_list **list, unsigned destroy_data); 55 void cil_list_append(struct cil_list *list, enum cil_flavor flavor, void *data); 56 void cil_list_prepend(struct cil_list *list, enum cil_flavor flavor, void *data); 57 void cil_list_remove(struct cil_list *list, enum cil_flavor flavor, void *data, unsigned destroy_da… 58 struct cil_list_item *cil_list_insert(struct cil_list *list, struct cil_list_item *curr, enum cil_f… 59 void cil_list_append_item(struct cil_list *list, struct cil_list_item *item); 60 void cil_list_prepend_item(struct cil_list *list, struct cil_list_item *item); 61 int cil_list_contains(struct cil_list *list, void *data); [all …]
|
D | cil_internal.h | 285 struct cil_list *sidorder; 286 struct cil_list *classorder; 287 struct cil_list *catorder; 288 struct cil_list *sensitivityorder; 302 struct cil_list *userprefixes; 303 struct cil_list *selinuxusers; 304 struct cil_list *names; 341 struct cil_list *bi_nodes; 366 struct cil_list *classperms; /* Only used for map perms */ 378 struct cil_list *class_list_str; [all …]
|
D | cil_list.c | 47 void cil_list_init(struct cil_list **list, enum cil_flavor flavor) in cil_list_init() 49 struct cil_list *new_list = cil_malloc(sizeof(*new_list)); in cil_list_init() 56 void cil_list_destroy(struct cil_list **list, unsigned destroy_data) in cil_list_destroy() 68 cil_list_destroy((struct cil_list**)&(item->data), destroy_data); in cil_list_destroy() 98 void cil_list_append(struct cil_list *list, enum cil_flavor flavor, void *data) in cil_list_append() 120 void cil_list_prepend(struct cil_list *list, enum cil_flavor flavor, void *data) in cil_list_prepend() 142 struct cil_list_item *cil_list_insert(struct cil_list *list, struct cil_list_item *curr, enum cil_f… in cil_list_insert() 171 void cil_list_append_item(struct cil_list *list, struct cil_list_item *item) in cil_list_append_item() 198 void cil_list_prepend_item(struct cil_list *list, struct cil_list_item *item) in cil_list_prepend_item() 224 void cil_list_remove(struct cil_list *list, enum cil_flavor flavor, void *data, unsigned destroy_da… in cil_list_remove() [all …]
|
D | cil_policy.c | 76 struct cil_list **lists; in __cil_gather_statements_helper() 79 lists = (struct cil_list **)extra_args; in __cil_gather_statements_helper() 181 static void cil_gather_statements(struct cil_tree_node *start, struct cil_list *lists[]) in cil_gather_statements() 186 static void cil_simple_rules_to_policy(FILE *out, struct cil_list *rules, const char *kind) in cil_simple_rules_to_policy() 282 static void cil_cond_expr_to_policy(FILE *out, struct cil_list *expr, int first) in cil_cond_expr_to_policy() 371 cil_list_for_each(i1, (struct cil_list *)operand->data) { in __cil_cons_leaf_operand_len() 414 static size_t cil_cons_expr_len(struct cil_db *db, struct cil_list *cons_expr) in cil_cons_expr_len() 536 cil_list_for_each(i1, (struct cil_list *)operand->data) { in __cil_cons_leaf_operand_to_string() 594 static char *__cil_cons_expr_to_string(struct cil_db *db, struct cil_list *cons_expr, char *new) in __cil_cons_expr_to_string() 637 static char *cil_cons_expr_to_string(struct cil_db *db, struct cil_list *cons_expr) in cil_cons_expr_to_string() [all …]
|
D | cil_find.c | 41 struct cil_list *matching; 163 static int __cil_classperms_list_match_any(struct cil_classperms *cp1, struct cil_list *cpl2) in __cil_classperms_list_match_any() 192 static int cil_classperms_list_match_any(struct cil_list *cpl1, struct cil_list *cpl2) in cil_classperms_list_match_any() 221 static void __add_classes_from_classperms_list(struct cil_list *classperms, struct cil_list *class_… in __add_classes_from_classperms_list() 247 struct cil_list *class_list = args; in __add_classes_from_map_perms() 255 struct cil_list *cil_expand_class(struct cil_class *class) in cil_expand_class() 257 struct cil_list *class_list; in cil_expand_class() 273 struct cil_list *cl1 = NULL; in cil_permissionx_match_any() 274 struct cil_list *cl2 = NULL; in cil_permissionx_match_any() 294 …ode *node, struct cil_avrule *avrule, struct cil_avrule *target, struct cil_list *matching, int ma… in cil_find_matching_avrule() [all …]
|
D | cil_resolve_ast.h | 41 int cil_resolve_classperms_list(struct cil_tree_node *current, struct cil_list *cp_list, void *extr… 68 int cil_resolve_cat_list(struct cil_tree_node *current, struct cil_list *cat_list, struct cil_list … 95 int cil_resolve_expr(enum cil_flavor expr_type, struct cil_list *str_expr, struct cil_list **datum_… 97 int cil_evaluate_expr(struct cil_list *datum_expr, uint16_t *result);
|
D | cil_copy_ast.h | 37 void cil_copy_list(struct cil_list *orig, struct cil_list **copy); 38 int cil_copy_expr(struct cil_db *db, struct cil_list *orig, struct cil_list **new); 51 void cil_copy_classperms_list(struct cil_list *orig, struct cil_list **new); 109 int cil_copy_exrp(struct cil_db *db, struct cil_list *orig, struct cil_list **new);
|
D | cil_verify.h | 64 int cil_verify_no_self_reference(struct cil_symtab_datum *datum, struct cil_list *datum_list); 65 int __cil_verify_ranges(struct cil_list *list); 68 int __cil_verify_initsids(struct cil_list *sids);
|
D | cil_find.h | 37 …ct cil_tree_node *current, enum cil_flavor flavor, void *target, struct cil_list *matching, int ma… 38 struct cil_list *cil_expand_class(struct cil_class *class);
|
D | cil_build_ast.h | 41 int cil_parse_to_list(struct cil_tree_node *parse_cl_head, struct cil_list *ast_cl, enum cil_flavor… 58 int cil_fill_perms(struct cil_tree_node *start_perm, struct cil_list **perm_strs); 63 int cil_fill_classperms_list(struct cil_tree_node *parse_current, struct cil_list **expr_list); 64 void cil_destroy_classperms_list(struct cil_list **cp_list); 127 int cil_gen_constrain_expr(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list *… 128 int cil_gen_expr(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list **stack); 155 int cil_set_to_list(struct cil_tree_node *parse_current, struct cil_list *ast_cl);
|
D | cil_resolve_ast.c | 59 struct cil_list *sidorder_lists; 60 struct cil_list *classorder_lists; 61 struct cil_list *unordered_classorder_lists; 62 struct cil_list *catorder_lists; 63 struct cil_list *sensitivityorder_lists; 64 struct cil_list *in_list; 109 …s(symtab_t *class_symtab, symtab_t *common_symtab, struct cil_list *perm_strs, struct cil_list **p… in __cil_resolve_perms() 118 struct cil_list *sub_list; in __cil_resolve_perms() 209 int cil_resolve_classperms_list(struct cil_tree_node *current, struct cil_list *cp_list, void *extr… in cil_resolve_classperms_list() 1168 struct cil_list *list; [all …]
|
D | cil_binary.c | 69 struct cil_list *neverallows; 1077 struct cil_list *class_list; in __cil_type_rule_to_avtab() 1133 struct cil_list *class_list; in __cil_typetransition_to_avtab() 1252 int __cil_perms_to_datum(struct cil_list *perms, class_datum_t *sepol_class, uint32_t *datum) in __cil_perms_to_datum() 1366 …ind, struct cil_symtab_datum *src, struct cil_symtab_datum *tgt, struct cil_list *classperms, cond… in __cil_avrule_expand() 1427 struct cil_list *classperms = cil_avrule->perms.classperms; 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() 1643 struct cil_list *xperms_list = NULL; in __cil_avrulex_ioctl_to_policydb() 1758 struct cil_list *class_list = NULL; in __cil_avrulex_to_hashtable_helper() 1959 static void __cil_expr_to_string(struct cil_list *expr, enum cil_flavor flavor, char **out); [all …]
|
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… 133 static int cil_verify_is_list(struct cil_list *list, enum cil_flavor flavor) in cil_verify_is_list() 1086 struct cil_list *new; in __evaluate_cat_expression() 1274 struct cil_list *l = curr->data; in __cil_expr_to_bitmap_helper() 1289 static int __cil_expr_to_bitmap(struct cil_list *expr, ebitmap_t *out, int max, struct cil_db *db) in __cil_expr_to_bitmap() 1409 static int __cil_expr_list_to_bitmap(struct cil_list *expr_list, ebitmap_t *out, int max, struct ci… in __cil_expr_list_to_bitmap() 1422 struct cil_list *l = (struct cil_list *)expr->data; in __cil_expr_list_to_bitmap() 1479 static void __mark_neverallow_attrs(struct cil_list *expr_list) in __mark_neverallow_attrs() 2024 struct cil_list *new_list; [all …]
|
D | cil_symtab.h | 39 struct cil_list *nodes;
|
D | cil_write_ast.c | 13 static int cil_unfill_expr(struct cil_list *expr_str, char **out_str, int paren); 14 static int cil_unfill_classperms_list(struct cil_list *classperms, char **out_str, int paren); 19 static int __cil_strlist_concat(struct cil_list *str_list, char **out_str, int paren) { in __cil_strlist_concat() 60 rc = cil_unfill_expr((struct cil_list *)curr->data, &str, paren); in __cil_unfill_expr_helper() 230 static int cil_unfill_expr(struct cil_list *expr_str, char **out_str, int paren) { in cil_unfill_expr() 234 struct cil_list *str_list = NULL; in cil_unfill_expr() 978 static int cil_unfill_classperms_list(struct cil_list *classperms, char **out_str, int paren) { in cil_unfill_classperms_list() 984 struct cil_list *str_list = NULL; in cil_unfill_classperms_list()
|
D | cil_verify.c | 327 int cil_verify_no_self_reference(struct cil_symtab_datum *datum, struct cil_list *datum_list) in cil_verify_no_self_reference() 349 int __cil_verify_ranges(struct cil_list *list) in __cil_verify_ranges() 362 range = ((struct cil_list*)curr->data)->head; in __cil_verify_ranges() 428 int __cil_verify_initsids(struct cil_list *sids) in __cil_verify_initsids() 744 struct cil_list *sensitivityorder = db->sensitivityorder; in __cil_verify_context() 1275 struct cil_list *classes = NULL; in __cil_verify_permissionx() 1547 static int __cil_verify_classperms(struct cil_list *classperms, in __cil_verify_classperms()
|
D | cil_copy_ast.c | 49 void cil_copy_list(struct cil_list *data, struct cil_list **copy) in cil_copy_list() 51 struct cil_list *new; in cil_copy_list() 62 struct cil_list *new_sub = NULL; in cil_copy_list() 63 cil_copy_list((struct cil_list*)orig_item->data, &new_sub); in cil_copy_list() 194 void cil_copy_classperms_list(struct cil_list *orig, struct cil_list **new) in cil_copy_classperms_list() 1404 int cil_copy_expr(struct cil_db *db, struct cil_list *orig, struct cil_list **new) in cil_copy_expr() 1418 struct cil_list *sub_list; in cil_copy_expr() 2084 struct cil_list *param_list = macro->params; in __cil_copy_node_helper()
|
D | cil_reset_ast.c | 7 static inline void cil_reset_classperms_list(struct cil_list *cp_list); 63 static inline void cil_reset_classperms_list(struct cil_list *cp_list) in cil_reset_classperms_list()
|
D | cil_tree.c | 334 static int cil_expr_to_string(struct cil_list *expr, char **out) in cil_expr_to_string() 503 void cil_tree_print_expr(struct cil_list *datum_expr, struct cil_list *str_expr) in cil_tree_print_expr() 543 void cil_tree_print_perm_strs(struct cil_list *perm_strs) in cil_tree_print_perm_strs() 581 void cil_tree_print_classperms_list(struct cil_list *cp_list) in cil_tree_print_classperms_list() 1323 cil_list_for_each(sub, (struct cil_list*)sens->data) { in cil_tree_print_node()
|
D | cil_build_ast.c | 58 int cil_fill_list(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list **list) in cil_fill_list() 154 struct cil_list *param_list = ((struct cil_macro*)ast_node->parent->data)->params; in cil_gen_node() 593 int cil_fill_perms(struct cil_tree_node *start_perm, struct cil_list **perms) in cil_fill_perms() 679 int cil_fill_classperms_list(struct cil_tree_node *parse_current, struct cil_list **cp_list) in cil_fill_classperms_list() 728 void cil_destroy_classperms_list(struct cil_list **cp_list) in cil_destroy_classperms_list() 2547 static int __cil_fill_expr(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list *… 2549 …pr_helper(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list *expr, int *depth) in __cil_fill_expr_helper() 2590 static int __cil_fill_expr(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list *… in __cil_fill_expr() 2602 struct cil_list *sub_expr; in __cil_fill_expr() 2619 int cil_gen_expr(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list **expr) in cil_gen_expr() [all …]
|
D | android.c | 270 static int cil_attrib_type_expr(struct cil_list *expr_str, struct version_args *args) in cil_attrib_type_expr() 281 rc = cil_attrib_type_expr((struct cil_list *)curr->data, args); in cil_attrib_type_expr()
|
/external/selinux/libsepol/cil/test/unit/ |
D | test_cil_list.c | 63 struct cil_list *test_class_list; in test_cil_list_append_item() 91 struct cil_list *test_class_list; in test_cil_list_append_item_append() 127 struct cil_list *test_class_list; in test_cil_list_append_item_append_extra() 169 struct cil_list *test_class_list = NULL; in test_cil_list_append_item_listnull_neg() 196 struct cil_list *test_class_list; in test_cil_list_append_item_itemnull_neg() 220 struct cil_list *test_class_list; in test_cil_list_prepend_item() 248 struct cil_list *test_class_list; in test_cil_list_prepend_item_prepend() 277 struct cil_list *test_class_list; in test_cil_list_prepend_item_prepend_neg() 311 struct cil_list *test_class_list = NULL; in test_cil_list_prepend_item_listnull_neg() 338 struct cil_list *test_class_list; in test_cil_list_prepend_item_itemnull_neg()
|
D | test_cil_copy_ast.c | 60 struct cil_list *cil_l; in test_cil_copy_list() 67 struct cil_list *copy_list; in test_cil_copy_list() 82 struct cil_list *cil_l; in test_cil_copy_list_sublist() 89 struct cil_list *copy_list; in test_cil_copy_list_sublist() 96 …CuAssertStrEquals(tc, ((struct cil_list *)copy_list->head->next->next->data)->head->data, ((struct… in test_cil_copy_list_sublist() 99 …CuAssertIntEquals(tc, ((struct cil_list *)copy_list->head->next->next->data)->head->flavor, ((stru… in test_cil_copy_list_sublist() 106 struct cil_list *cil_l; in test_cil_copy_list_sublist_extra() 113 struct cil_list *copy_list; in test_cil_copy_list_sublist_extra() 120 …CuAssertStrEquals(tc, ((struct cil_list *)copy_list->head->next->next->data)->head->data, ((struct… in test_cil_copy_list_sublist_extra() 124 …CuAssertIntEquals(tc, ((struct cil_list *)copy_list->head->next->next->data)->head->flavor, ((stru… in test_cil_copy_list_sublist_extra() [all …]
|
D | test_cil_resolve_ast.c | 616 struct cil_list *test_cat_list; in test_cil_resolve_cat_list() 642 struct cil_list *test_cat_list; in test_cil_resolve_cat_list_catlistnull_neg() 669 struct cil_list *test_cat_list = NULL; in test_cil_resolve_cat_list_rescatlistnull_neg() 698 struct cil_list *test_cat_list; in test_cil_resolve_cat_list_catrange() 725 struct cil_list *test_cat_list; in test_cil_resolve_cat_list_catrange_neg() 759 struct cil_list *test_cat_list; in test_cil_resolve_cat_list_catname_neg()
|
/external/selinux/libsepol/ |
D | Android.bp | 101 "cil/src/cil_list.c",
|