Home
last modified time | relevance | path

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

/third_party/selinux/libsepol/cil/src/
Dcil_list.c58 struct cil_list_item *item; in cil_list_destroy()
67 struct cil_list_item *next = item->next; in cil_list_destroy()
80 void cil_list_item_init(struct cil_list_item **item) in cil_list_item_init()
82 struct cil_list_item *new_item = cil_malloc(sizeof(*new_item)); in cil_list_item_init()
90 void cil_list_item_destroy(struct cil_list_item **item, unsigned destroy_data) in cil_list_item_destroy()
101 struct cil_list_item *item; in cil_list_append()
123 struct cil_list_item *item; in cil_list_prepend()
143 struct cil_list_item *cil_list_insert(struct cil_list *list, struct cil_list_item *curr, enum cil_f… in cil_list_insert()
145 struct cil_list_item *item; in cil_list_insert()
172 void cil_list_append_item(struct cil_list *list, struct cil_list_item *item) in cil_list_append_item()
[all …]
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_policy.c189 struct cil_list_item *i1; in cil_simple_rules_to_policy()
200 struct cil_list_item *i1; in cil_cats_to_policy()
285 struct cil_list_item *i1 = expr->head; in cil_cond_expr_to_policy()
354 static size_t __cil_cons_leaf_operand_len(struct cil_db *db, struct cil_list_item *operand) in __cil_cons_leaf_operand_len()
356 struct cil_list_item *i1; in __cil_cons_leaf_operand_len()
386 static size_t __cil_cons_leaf_op_len(struct cil_list_item *op) in __cil_cons_leaf_op_len()
417 struct cil_list_item *i1; in cil_cons_expr_len()
467 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()
469 struct cil_list_item *i1; in __cil_cons_leaf_operand_to_string()
556 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.c150 struct cil_list_item *i1, *i2; in cil_classperms_match_any()
167 struct cil_list_item *curr; in __cil_classperms_list_match_any()
176 struct cil_list_item *i = NULL; in __cil_classperms_list_match_any()
196 struct cil_list_item *curr; in cil_classperms_list_match_any()
205 struct cil_list_item *i = NULL; in cil_classperms_list_match_any()
224 struct cil_list_item *curr; in __add_classes_from_classperms_list()
232 struct cil_list_item *i = NULL; in __add_classes_from_classperms_list()
Dcil_resolve_ast.c90 struct cil_list_item *item; in __cil_insert_name()
117 struct cil_list_item *curr; in __cil_resolve_perms()
222 struct cil_list_item *curr; in cil_resolve_classperms_list()
248 struct cil_list_item *curr; in cil_resolve_classpermissionset()
472 struct cil_list_item *curr; in cil_resolve_expandtypeattribute()
810 struct cil_list_item *curr; in cil_resolve_classmapping()
1209 struct cil_list_item *item = NULL; in __cil_ordered_lists_destroy()
1217 struct cil_list_item *next = item->next; in __cil_ordered_lists_destroy()
1233 static struct cil_list_item *__cil_ordered_item_insert(struct cil_list *old, struct cil_list_item *… in __cil_ordered_item_insert()
1268 …ist_insert(struct cil_list *old, struct cil_list_item *ocurr, struct cil_list_item *nstart, struct… in __cil_ordered_list_insert()
[all …]
Dcil_reset_ast.c76 struct cil_list_item *curr; in cil_reset_classperms_list()
117 struct cil_list_item *expr = NULL; in cil_reset_userattr()
118 struct cil_list_item *next = NULL; in cil_reset_userattr()
164 struct cil_list_item *expr = attr->expr_list->head; in cil_reset_roleattr()
166 struct cil_list_item *next = expr->next; in cil_reset_roleattr()
193 struct cil_list_item *expr = attr->expr_list->head; in cil_reset_typeattr()
195 struct cil_list_item *next = expr->next; in cil_reset_typeattr()
Dcil_verify.c402 struct cil_list_item *item; in cil_verify_decl_does_not_shadow_macro_parameter()
422 struct cil_list_item *item; in __verify_no_self_reference_in_expr()
497 struct cil_list_item *curr; in __cil_verify_ranges()
498 struct cil_list_item *range = NULL; in __cil_verify_ranges()
576 struct cil_list_item *i; in __cil_verify_initsids()
596 struct cil_list_item *i; in __cil_is_cat_in_cats()
622 struct cil_list_item *i, *j; in __cil_verify_cats_associated_with_sens()
655 struct cil_list_item *curr; in __cil_verify_levelrange_sensitivity()
685 struct cil_list_item *item; in __cil_verify_levelrange_cats()
890 struct cil_list_item *curr; in __cil_verify_context()
[all …]
Dcil_binary.c290 struct cil_list_item *curr_class; in cil_classorder_to_policydb()
793 struct cil_list_item *curr_cat; in cil_catorder_to_policydb()
852 struct cil_list_item *curr; in cil_sensitivityorder_to_policydb()
1077 struct cil_list_item *c; in __cil_type_rule_to_avtab_helper()
1177 struct cil_list_item *c; in __cil_typetransition_to_avtab_helper()
1322 struct cil_list_item *curr_perm; in __cil_perms_to_datum()
1435 struct cil_list_item *curr; in __cil_avrule_expand()
1446 struct cil_list_item *i = NULL; in __cil_avrule_expand()
1710 struct cil_list_item *item; in __cil_avrulex_ioctl_to_policydb()
1817 struct cil_list_item *c; in __cil_avrulex_to_hashtable_helper()
[all …]
Dcil_post.c65 struct cil_list_item *i, *j; in cats_compare()
142 struct cil_list_item *curr; in cil_verify_is_list()
1101 struct cil_list_item *curr; in __evaluate_cat_expression()
1149 struct cil_list_item *curr; in __cil_cat_to_bitmap()
1185 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()
1227 …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()
1257 static int __cil_expr_to_bitmap_helper(struct cil_list_item *curr, enum cil_flavor flavor, ebitmap_… in __cil_expr_to_bitmap_helper()
1300 struct cil_list_item *curr; in __cil_expr_to_bitmap()
1414 struct cil_list_item *expr; in __cil_expr_list_to_bitmap()
1483 struct cil_list_item *curr; in __mark_neverallow_attrs()
[all …]
Dcil_write_ast.c56 struct cil_list_item *curr; in write_expr()
205 struct cil_list_item *curr; in write_string_list()
226 struct cil_list_item *curr; in write_datum_list()
262 struct cil_list_item *curr; in write_classperms_list()
397 struct cil_list_item *item; in write_call_args()
635 struct cil_list_item *curr; in cil_write_ast_node()
Dcil.c1430 struct cil_list_item *curr; in cil_userprefixes_to_string()
1478 struct cil_list_item *i; in cil_cats_to_ebitmap()
1479 struct cil_list_item *j; in cil_cats_to_ebitmap()
1549 struct cil_list_item *item; in __cil_level_strlen()
1601 struct cil_list_item *item; in __cil_level_to_string()
1667 struct cil_list_item *curr; in cil_selinuxusers_to_string()
Dcil_build_ast.c238 struct cil_list_item *item; in cil_destroy_block()
314 struct cil_list_item *item; in cil_destroy_blockinherit()
522 struct cil_list_item *curr = NULL; in cil_gen_classorder()
523 struct cil_list_item *head = NULL; in cil_gen_classorder()
792 struct cil_list_item *curr; in cil_destroy_classperms_list()
1232 struct cil_list_item *curr = NULL; in cil_gen_sidorder()
1373 struct cil_list_item *expr = NULL; in cil_destroy_userattribute()
1374 struct cil_list_item *next = NULL; in cil_destroy_userattribute()
2012 struct cil_list_item *expr = attr->expr_list->head; in cil_destroy_roleattribute()
2014 struct cil_list_item *next = expr->next; in cil_destroy_roleattribute()
[all …]
Dcil_copy_ast.c54 struct cil_list_item *orig_item; in cil_copy_list()
205 struct cil_list_item *orig_item; in cil_copy_classperms_list()
1398 struct cil_list_item *curr; in cil_copy_expr()
/third_party/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()