Home
last modified time | relevance | path

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

/external/selinux/libsepol/cil/src/
Dcil_list.h35 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 …]
Dcil_internal.h274 struct cil_list *sidorder;
275 struct cil_list *classorder;
276 struct cil_list *catorder;
277 struct cil_list *sensitivityorder;
289 struct cil_list *userprefixes;
290 struct cil_list *selinuxusers;
291 struct cil_list *names;
325 struct cil_list *bi_nodes;
350 struct cil_list *classperms; /* Only used for map perms */
362 struct cil_list *class_list_str;
[all …]
Dcil_list.c47 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 …]
Dcil_find.c41 struct cil_list *matching;
159 static int __cil_classperms_list_match_any(struct cil_classperms *cp1, struct cil_list *cpl2) in __cil_classperms_list_match_any()
188 static int cil_classperms_list_match_any(struct cil_list *cpl1, struct cil_list *cpl2) in cil_classperms_list_match_any()
217 static void __add_classes_from_classperms_list(struct cil_list *classperms, struct cil_list *class_… in __add_classes_from_classperms_list()
243 struct cil_list *class_list = args; in __add_classes_from_map_perms()
251 struct cil_list *cil_expand_class(struct cil_class *class) in cil_expand_class()
253 struct cil_list *class_list; in cil_expand_class()
269 struct cil_list *cl1 = NULL; in cil_permissionx_match_any()
270 struct cil_list *cl2 = NULL; in cil_permissionx_match_any()
290 …ode *node, struct cil_avrule *avrule, struct cil_avrule *target, struct cil_list *matching, int ma… in cil_find_matching_avrule()
[all …]
Dcil_resolve_ast.h41 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
93 int cil_resolve_expr(enum cil_flavor expr_type, struct cil_list *str_expr, struct cil_list **datum_…
95 int cil_evaluate_expr(struct cil_list *datum_expr, uint16_t *result);
Dcil_copy_ast.h37 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);
108 int cil_copy_exrp(struct cil_db *db, struct cil_list *orig, struct cil_list **new);
Dcil_verify.h64 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);
Dcil_find.h37 …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);
Dcil_policy.c73 struct cil_list *users;
74 struct cil_list *sens;
75 struct cil_list *cats;
85 int cil_expr_to_policy(FILE **file_arr, uint32_t file_index, struct cil_list *expr);
299 int cil_multimap_insert(struct cil_list *list, struct cil_symtab_datum *key, struct cil_symtab_datu… in cil_multimap_insert()
337 int cil_userrole_to_policy(FILE **file_arr, struct cil_list *userroles) in cil_userrole_to_policy()
365 int cil_cat_to_policy(FILE **file_arr, struct cil_list *cats) in cil_cat_to_policy()
391 int cil_sens_to_policy(FILE **file_arr, struct cil_list *sens) in cil_sens_to_policy()
454 void cil_perms_to_policy(FILE **file_arr, uint32_t file_index, struct cil_list *list) in cil_perms_to_policy()
505 …rain_to_policy_helper(FILE **file_arr, char *kind, struct cil_list *classperms, struct cil_list *e… in cil_constrain_to_policy_helper()
[all …]
Dcil_build_ast.h41 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);
153 int cil_set_to_list(struct cil_tree_node *parse_current, struct cil_list *ast_cl);
Dcil_resolve_ast.c59 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()
205 int cil_resolve_classperms_list(struct cil_tree_node *current, struct cil_list *cp_list, void *extr… in cil_resolve_classperms_list()
1118 struct cil_list *list;
[all …]
Dcil_binary.c64 struct cil_list *neverallows;
1062 struct cil_list *class_list; in __cil_type_rule_to_avtab()
1122 struct cil_list *class_list; in __cil_typetransition_to_avtab()
1245 int __cil_perms_to_datum(struct cil_list *perms, class_datum_t *sepol_class, uint32_t *datum) in __cil_perms_to_datum()
1359 …ind, struct cil_symtab_datum *src, struct cil_symtab_datum *tgt, struct cil_list *classperms, cond… in __cil_avrule_expand()
1404 struct cil_list *classperms = cil_avrule->perms.classperms; in __cil_avrule_to_avtab()
1485 int __cil_permx_bitmap_to_sepol_xperms_list(ebitmap_t *xperms, struct cil_list **xperms_list) in __cil_permx_bitmap_to_sepol_xperms_list()
1558 struct cil_list *xperms_list = NULL; in __cil_avrulex_ioctl_to_policydb()
1671 struct cil_list *class_list = NULL; in __cil_avrulex_to_hashtable_helper()
1814 static void __cil_expr_to_string(struct cil_list *expr, enum cil_flavor flavor, char **out);
[all …]
Dcil_post.c50 static int __cil_expr_to_bitmap(struct cil_list *expr, ebitmap_t *out, int max, struct cil_db *db);
51 static int __cil_expr_list_to_bitmap(struct cil_list *expr_list, ebitmap_t *out, int max, struct ci…
53 static int cil_verify_is_list(struct cil_list *list, enum cil_flavor flavor) in cil_verify_is_list()
835 struct cil_list *new; in __evaluate_cat_expression()
1024 struct cil_list *l = curr->data; in __cil_expr_to_bitmap_helper()
1039 static int __cil_expr_to_bitmap(struct cil_list *expr, ebitmap_t *out, int max, struct cil_db *db) in __cil_expr_to_bitmap()
1158 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()
1171 struct cil_list *l = (struct cil_list *)expr->data; in __cil_expr_list_to_bitmap()
1676 struct cil_list *new_list;
1683 struct cil_list *new_list = perm_args->new_list; in __perm_bits_to_list()
[all …]
Dcil_policy.h39 struct cil_list *values;
Dcil_copy_ast.c49 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()
1336 int cil_copy_expr(struct cil_db *db, struct cil_list *orig, struct cil_list **new) in cil_copy_expr()
1350 struct cil_list *sub_list; in cil_copy_expr()
1981 struct cil_list *param_list = macro->params; in __cil_copy_node_helper()
Dcil_symtab.h39 struct cil_list *nodes;
Dcil_verify.c318 int cil_verify_no_self_reference(struct cil_symtab_datum *datum, struct cil_list *datum_list) in cil_verify_no_self_reference()
340 int __cil_verify_ranges(struct cil_list *list) in __cil_verify_ranges()
353 range = ((struct cil_list*)curr->data)->head; in __cil_verify_ranges()
419 int __cil_verify_initsids(struct cil_list *sids) in __cil_verify_initsids()
736 struct cil_list *sensitivityorder = db->sensitivityorder; in __cil_verify_context()
1233 struct cil_list *classes = NULL; in __cil_verify_permissionx()
1500 static int __cil_verify_classperms(struct cil_list *classperms, struct cil_symtab_datum *orig) in __cil_verify_classperms()
Dcil_tree.c248 static int cil_expr_to_string(struct cil_list *expr, char **out) in cil_expr_to_string()
417 void cil_tree_print_expr(struct cil_list *datum_expr, struct cil_list *str_expr) in cil_tree_print_expr()
453 void cil_tree_print_perm_strs(struct cil_list *perm_strs) in cil_tree_print_perm_strs()
491 void cil_tree_print_classperms_list(struct cil_list *cp_list) in cil_tree_print_classperms_list()
1222 cil_list_for_each(sub, (struct cil_list*)sens->data) { in cil_tree_print_node()
Dcil_reset_ast.c7 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()
Dcil_build_ast.c58 int cil_fill_list(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list **list) in cil_fill_list()
121 struct cil_list *param_list = ((struct cil_macro*)ast_node->parent->data)->params; in cil_gen_node()
554 int cil_fill_perms(struct cil_tree_node *start_perm, struct cil_list **perms) in cil_fill_perms()
640 int cil_fill_classperms_list(struct cil_tree_node *parse_current, struct cil_list **cp_list) in cil_fill_classperms_list()
689 void cil_destroy_classperms_list(struct cil_list **cp_list) in cil_destroy_classperms_list()
2538 static int __cil_fill_expr(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list *…
2540 …pr_helper(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list *expr, int *depth) in __cil_fill_expr_helper()
2581 static int __cil_fill_expr(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list *… in __cil_fill_expr()
2593 struct cil_list *sub_expr; in __cil_fill_expr()
2609 int cil_gen_expr(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list **expr) in cil_gen_expr()
[all …]
/external/selinux/libsepol/cil/test/unit/
Dtest_cil_list.c63 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()
Dtest_cil_copy_ast.c60 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 …]
Dtest_cil_resolve_ast.c616 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()
Dtest_cil_build_ast.c158 struct cil_list *cil_l = NULL; in test_cil_set_to_list()
159 struct cil_list *sub_list = NULL; in test_cil_set_to_list()
165 sub_list = (struct cil_list *)cil_l->head->next->next->data; in test_cil_set_to_list()
174 struct cil_list *cil_l = NULL; in test_cil_set_to_list_tree_node_null_neg()
183 struct cil_list *cil_l; in test_cil_set_to_list_cl_head_null_neg()
/external/selinux/libsepol/
DAndroid.mk52 cil/src/cil_list.c \