Home
last modified time | relevance | path

Searched refs:catorder (Results 1 – 10 of 10) sorted by relevance

/third_party/selinux/libsepol/cil/src/
Dcil_internal.h294 struct cil_list *catorder; member
1071 void cil_catorder_init(struct cil_catorder **catorder);
Dcil.c411 (*db)->catorder = NULL; in cil_db_init()
466 cil_list_destroy(&(*db)->catorder, CIL_FALSE); in cil_db_destroy()
2790 void cil_catorder_init(struct cil_catorder **catorder) in cil_catorder_init() argument
2792 *catorder = cil_malloc(sizeof(**catorder)); in cil_catorder_init()
2794 (*catorder)->cat_list_str = NULL; in cil_catorder_init()
Dcil_build_ast.c3652 struct cil_catorder *catorder = NULL; in cil_gen_catorder() local
3665 cil_catorder_init(&catorder); in cil_gen_catorder()
3667 rc = cil_fill_list(parse_current->next->cl_head, CIL_CATORDER, &catorder->cat_list_str); in cil_gen_catorder()
3672 cil_list_for_each(curr, catorder->cat_list_str) { in cil_gen_catorder()
3680 ast_node->data = catorder; in cil_gen_catorder()
3687 cil_destroy_catorder(catorder); in cil_gen_catorder()
3691 void cil_destroy_catorder(struct cil_catorder *catorder) in cil_destroy_catorder() argument
3693 if (catorder == NULL) { in cil_destroy_catorder()
3697 if (catorder->cat_list_str != NULL) { in cil_destroy_catorder()
3698 cil_list_destroy(&catorder->cat_list_str, 1); in cil_destroy_catorder()
[all …]
Dcil_build_ast.h160 void cil_destroy_catorder(struct cil_catorder *catorder);
Dcil_policy.c903 static void cil_categories_to_policy(FILE *out, struct cil_list *catorder, struct cil_list *all_ali… in cil_categories_to_policy() argument
912 cil_list_for_each(i1, catorder) { in cil_categories_to_policy()
1941 cil_categories_to_policy(out, db->catorder, lists[CIL_LIST_CATALIAS]); in cil_gen_policy()
Dcil_resolve_ast.c1571 struct cil_catorder *catorder = current->data; in cil_resolve_catorder() local
1581 cil_list_for_each(curr, catorder->cat_list_str) { in cil_resolve_catorder()
4138 db->catorder = __cil_ordered_lists_merge_all(&extra_args.catorder_lists, NULL); in cil_resolve_ast()
4139 if (db->catorder == NULL) { in cil_resolve_ast()
4143 cil_set_cat_values(db->catorder, db); in cil_resolve_ast()
4200 cil_list_destroy(&db->catorder, CIL_FALSE); in cil_resolve_ast()
Dcil_write_ast.c891 struct cil_catorder *catorder = node->data; in cil_write_ast_node() local
893 write_string_list(out, catorder->cat_list_str); in cil_write_ast_node()
Dcil_post.c1121 cil_list_for_each(curr, db->catorder) { in __evaluate_cat_expression()
Dcil_binary.c797 cil_list_for_each(curr_cat, db->catorder) { in cil_catorder_to_policydb()
/third_party/selinux/libsepol/cil/test/unit/
Dtest_cil_resolve_ast.c696 __cil_verify_order(test_db->catorder, test_db->ast->root, CIL_CAT); in test_cil_resolve_cat_list_catrange()
831 __cil_verify_order(test_db->catorder, test_db->ast->root, CIL_CAT); in test_cil_resolve_catrange()
856 __cil_verify_order(test_db->catorder, test_db->ast->root, CIL_CAT); in test_cil_resolve_catrange_catloworder_neg()
858 test_db->catorder->head = test_db->catorder->head->next; in test_cil_resolve_catrange_catloworder_neg()
859 test_db->catorder->head->next = NULL; in test_cil_resolve_catrange_catloworder_neg()
884 __cil_verify_order(test_db->catorder, test_db->ast->root, CIL_CAT); in test_cil_resolve_catrange_cathighorder_neg()
909 __cil_verify_order(test_db->catorder, test_db->ast->root, CIL_CAT); in test_cil_resolve_catrange_cat1_neg()
934 __cil_verify_order(test_db->catorder, test_db->ast->root, CIL_CAT); in test_cil_resolve_catrange_cat2_neg()
1070 __cil_verify_order(test_db->catorder, test_db->ast->root, CIL_CAT); in test_cil_resolve_senscat_sublist()
1145 __cil_verify_order(test_db->catorder, test_db->ast->root, CIL_CAT); in test_cil_resolve_senscat_currrangecat()
[all …]