Home
last modified time | relevance | path

Searched refs:cil_list_item (Results 1 – 19 of 19) sorted by relevance

/external/selinux/libsepol/cil/src/
Dcil_list.h36 struct cil_list_item *head;
37 struct cil_list_item *tail;
41 struct cil_list_item { struct
42 struct cil_list_item *next; argument
53 void cil_list_item_init(struct cil_list_item **item); argument
54 void cil_list_item_destroy(struct cil_list_item **item, unsigned destroy_data);
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);
Dcil_list.c62 struct cil_list_item *item = (*list)->head; in cil_list_destroy()
63 struct cil_list_item *next = NULL; in cil_list_destroy()
79 void cil_list_item_init(struct cil_list_item **item) in cil_list_item_init()
81 struct cil_list_item *new_item = cil_malloc(sizeof(*new_item)); in cil_list_item_init()
89 void cil_list_item_destroy(struct cil_list_item **item, unsigned destroy_data) in cil_list_item_destroy()
100 struct cil_list_item *item; in cil_list_append()
122 struct cil_list_item *item; 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()
144 struct cil_list_item *item; in cil_list_insert()
171 void cil_list_append_item(struct cil_list *list, struct cil_list_item *item) in cil_list_append_item()
[all …]
Dcil_policy.c188 struct cil_list_item *i1; in cil_simple_rules_to_policy()
199 struct cil_list_item *i1; in cil_cats_to_policy()
284 struct cil_list_item *i1 = expr->head; in cil_cond_expr_to_policy()
353 static size_t __cil_cons_leaf_operand_len(struct cil_db *db, struct cil_list_item *operand) in __cil_cons_leaf_operand_len()
355 struct cil_list_item *i1; in __cil_cons_leaf_operand_len()
385 static size_t __cil_cons_leaf_op_len(struct cil_list_item *op) in __cil_cons_leaf_op_len()
416 struct cil_list_item *i1; in cil_cons_expr_len()
466 static char *__cil_cons_leaf_operand_to_string(struct cil_db *db, struct cil_list_item *operand, ch… in __cil_cons_leaf_operand_to_string()
468 struct cil_list_item *i1; in __cil_cons_leaf_operand_to_string()
555 static char *__cil_cons_leaf_op_to_string(struct cil_list_item *op, char *new) in __cil_cons_leaf_op_to_string()
[all …]
Dcil_find.c149 struct cil_list_item *i1, *i2; in cil_classperms_match_any()
166 struct cil_list_item *curr; in __cil_classperms_list_match_any()
175 struct cil_list_item *i = NULL; in __cil_classperms_list_match_any()
195 struct cil_list_item *curr; in cil_classperms_list_match_any()
204 struct cil_list_item *i = NULL; in cil_classperms_list_match_any()
223 struct cil_list_item *curr; in __add_classes_from_classperms_list()
231 struct cil_list_item *i = NULL; in __add_classes_from_classperms_list()
Dcil_reset_ast.c65 struct cil_list_item *curr; in cil_reset_classperms_list()
106 struct cil_list_item *expr = NULL; in cil_reset_userattr()
107 struct cil_list_item *next = NULL; in cil_reset_userattr()
150 struct cil_list_item *expr = attr->expr_list->head; in cil_reset_roleattr()
152 struct cil_list_item *next = expr->next; in cil_reset_roleattr()
179 struct cil_list_item *expr = attr->expr_list->head; in cil_reset_typeattr()
181 struct cil_list_item *next = expr->next; in cil_reset_typeattr()
Dcil_resolve_ast.c94 struct cil_list_item *item; in __cil_insert_name()
112 struct cil_list_item *curr; in __cil_resolve_perms()
212 struct cil_list_item *curr; in cil_resolve_classperms_list()
238 struct cil_list_item *curr; in cil_resolve_classpermissionset()
462 struct cil_list_item *curr; in cil_resolve_expandtypeattribute()
786 struct cil_list_item *curr; in cil_resolve_classmapping()
1191 struct cil_list_item *item = NULL; in __cil_ordered_lists_destroy()
1199 struct cil_list_item *next = item->next; in __cil_ordered_lists_destroy()
1215 struct cil_list_item *__cil_ordered_item_insert(struct cil_list *old, struct cil_list_item *curr, s… in __cil_ordered_item_insert()
1250 …ist_insert(struct cil_list *old, struct cil_list_item *ocurr, struct cil_list_item *nstart, struct… in __cil_ordered_list_insert()
[all …]
Dcil_verify.c329 struct cil_list_item *i; in cil_verify_no_self_reference()
352 struct cil_list_item *curr; in __cil_verify_ranges()
353 struct cil_list_item *range = NULL; in __cil_verify_ranges()
431 struct cil_list_item *i; in __cil_verify_initsids()
451 struct cil_list_item *i; in __cil_is_cat_in_cats()
477 struct cil_list_item *i, *j; in __cil_verify_cats_associated_with_sens()
510 struct cil_list_item *curr; in __cil_verify_levelrange_sensitivity()
540 struct cil_list_item *item; in __cil_verify_levelrange_cats()
745 struct cil_list_item *curr; in __cil_verify_context()
1276 struct cil_list_item *item; in __cil_verify_permissionx()
[all …]
Dcil_binary.c294 struct cil_list_item *curr_class; in cil_classorder_to_policydb()
797 struct cil_list_item *curr_cat; in cil_catorder_to_policydb()
856 struct cil_list_item *curr; in cil_sensitivityorder_to_policydb()
1082 struct cil_list_item *c; in __cil_type_rule_to_avtab()
1140 struct cil_list_item *c; in __cil_typetransition_to_avtab()
1256 struct cil_list_item *curr_perm; in __cil_perms_to_datum()
1369 struct cil_list_item *curr; in __cil_avrule_expand()
1380 struct cil_list_item *i = NULL; in __cil_avrule_expand()
1644 struct cil_list_item *item; in __cil_avrulex_ioctl_to_policydb()
1759 struct cil_list_item *c; in __cil_avrulex_to_hashtable_helper()
[all …]
Dcil_post.c58 struct cil_list_item *i, *j; in cats_compare()
135 struct cil_list_item *curr; in cil_verify_is_list()
1087 struct cil_list_item *curr; in __evaluate_cat_expression()
1135 struct cil_list_item *curr; in __cil_cat_to_bitmap()
1171 static int __cil_cat_expr_range_to_bitmap_helper(struct cil_list_item *i1, struct cil_list_item *i2… in __cil_cat_expr_range_to_bitmap_helper()
1216 …int __cil_permissionx_expr_range_to_bitmap_helper(struct cil_list_item *i1, struct cil_list_item *… in __cil_permissionx_expr_range_to_bitmap_helper()
1249 static int __cil_expr_to_bitmap_helper(struct cil_list_item *curr, enum cil_flavor flavor, ebitmap_… in __cil_expr_to_bitmap_helper()
1292 struct cil_list_item *curr; in __cil_expr_to_bitmap()
1412 struct cil_list_item *expr; in __cil_expr_list_to_bitmap()
1481 struct cil_list_item *curr; in __mark_neverallow_attrs()
[all …]
Dcil_tree.c337 struct cil_list_item *curr; in cil_expr_to_string()
545 struct cil_list_item *curr; in cil_tree_print_perm_strs()
583 struct cil_list_item *i; in cil_tree_print_classperms_list()
928 struct cil_list_item *class; in cil_tree_print_node()
1283 struct cil_list_item *cat; in cil_tree_print_node()
1314 struct cil_list_item *sens; in cil_tree_print_node()
1321 struct cil_list_item *sub; in cil_tree_print_node()
1638 struct cil_list_item *sid; in cil_tree_print_node()
1662 struct cil_list_item *curr_param; in cil_tree_print_node()
1686 struct cil_list_item *item; in cil_tree_print_node()
Dcil_write_ast.c23 struct cil_list_item *curr; in __cil_strlist_concat()
51 static int __cil_unfill_expr_helper(struct cil_list_item *curr, in __cil_unfill_expr_helper()
52 struct cil_list_item **next, char **out_str, int paren) { in __cil_unfill_expr_helper()
235 struct cil_list_item *curr = NULL; in cil_unfill_expr()
243 struct cil_list_item *next = NULL; in cil_unfill_expr()
955 static int cil_unfill_classperms(struct cil_list_item *curr, char **out_str) { in cil_unfill_classperms()
980 struct cil_list_item *curr; in cil_unfill_classperms_list()
Dcil_copy_ast.c52 struct cil_list_item *orig_item; in cil_copy_list()
196 struct cil_list_item *orig_item; in cil_copy_classperms_list()
1406 struct cil_list_item *curr; in cil_copy_expr()
1525 struct cil_list_item *curr_orig = NULL; in cil_copy_macro()
1526 struct cil_list_item *curr_new = NULL; in cil_copy_macro()
2086 struct cil_list_item *item; in __cil_copy_node_helper()
Dcil.c1380 struct cil_list_item *curr; in cil_userprefixes_to_string()
1429 struct cil_list_item *i; in cil_cats_to_ebitmap()
1430 struct cil_list_item *j; in cil_cats_to_ebitmap()
1500 struct cil_list_item *item; in __cil_level_strlen()
1552 struct cil_list_item *item; in __cil_level_to_string()
1622 struct cil_list_item *curr; in cil_selinuxusers_to_string()
Dcil_build_ast.c153 struct cil_list_item *item; in cil_gen_node()
451 struct cil_list_item *curr = NULL; in cil_gen_classorder()
452 struct cil_list_item *head = NULL; in cil_gen_classorder()
730 struct cil_list_item *curr; in cil_destroy_classperms_list()
1168 struct cil_list_item *curr = NULL; in cil_gen_sidorder()
1309 struct cil_list_item *expr = NULL; in cil_destroy_userattribute()
1310 struct cil_list_item *next = NULL; in cil_destroy_userattribute()
1954 struct cil_list_item *expr = attr->expr_list->head; in cil_destroy_roleattribute()
1956 struct cil_list_item *next = expr->next; in cil_destroy_roleattribute()
2395 struct cil_list_item *expr = attr->expr_list->head; in cil_destroy_typeattribute()
[all …]
Dandroid.c273 struct cil_list_item *curr = NULL; in cil_attrib_type_expr()
/external/selinux/libsepol/cil/test/unit/
Dtest_cil_list.c66 struct cil_list_item *test_new_item; in test_cil_list_append_item()
94 struct cil_list_item *test_new_item; in test_cil_list_append_item_append()
130 struct cil_list_item *test_new_item; in test_cil_list_append_item_append_extra()
171 struct cil_list_item *test_new_item; in test_cil_list_append_item_listnull_neg()
199 struct cil_list_item *test_new_item = NULL; in test_cil_list_append_item_itemnull_neg()
223 struct cil_list_item *test_new_item; in test_cil_list_prepend_item()
251 struct cil_list_item *test_new_item; in test_cil_list_prepend_item_prepend()
280 struct cil_list_item *test_new_item; in test_cil_list_prepend_item_prepend_neg()
286 struct cil_list_item *test_new_item_next; in test_cil_list_prepend_item_prepend_neg()
313 struct cil_list_item *test_new_item; in test_cil_list_prepend_item_listnull_neg()
[all …]
Dtest_cil_copy_ast.c1261 struct cil_list_item *curr_old; in test_cil_copy_conditional()
Dtest_cil_resolve_ast.c5990 struct cil_list_item *item = new_call->macro->params->head; in test_cil_resolve_call1_paramsflavor_neg()
6021 struct cil_list_item *item = new_call->macro->params->head; in test_cil_resolve_call1_unknownflavor_neg()
6533 …((struct cil_args*)((struct cil_list_item *)((struct cil_call *)test_db->ast->root->cl_head->next-… in test_cil_resolve_call2_unknown_neg()
Dtest_cil_build_ast.c8162 …struct cil_list_item *test_list = ((struct cil_avrule*)test_ast_node->data)->classpermset->permset… in test_cil_gen_avrule()