Home
last modified time | relevance | path

Searched refs:cl_head (Results 1 – 16 of 16) sorted by relevance

/external/selinux/libsepol/cil/test/unit/
Dtest_cil_build_ast.c70 test_current = test_tree->root->cl_head->cl_head; in test_cil_parse_to_list()
80 test_avrule->classpermset->class_str = cil_strdup(test_current->next->next->next->cl_head->data); in test_cil_parse_to_list()
86 test_current = test_current->next->next->next->cl_head->next->cl_head; in test_cil_parse_to_list()
101 test_current = test_tree->root->cl_head->cl_head; in test_cil_parse_to_list_currnull_neg()
111 test_avrule->classpermset->class_str = cil_strdup(test_current->next->next->next->cl_head->data); in test_cil_parse_to_list_currnull_neg()
132 test_current = test_tree->root->cl_head->cl_head; in test_cil_parse_to_list_listnull_neg()
142 test_avrule->classpermset->class_str = cil_strdup(test_current->next->next->next->cl_head->data); in test_cil_parse_to_list_listnull_neg()
146 test_current = test_current->next->next->next->cl_head->next->cl_head; in test_cil_parse_to_list_listnull_neg()
164 int rc = cil_set_to_list(test_tree->root->cl_head, cil_l, 1); in test_cil_set_to_list()
188 test_tree->root->cl_head = NULL; in test_cil_set_to_list_cl_head_null_neg()
[all …]
Dtest_cil_list.c70 test_new_item->data = test_tree->root->cl_head->cl_head->next->cl_head; in test_cil_list_append_item()
98 test_new_item->data = test_tree->root->cl_head->cl_head->next->cl_head; in test_cil_list_append_item_append()
105 test_new_item->data = test_tree->root->cl_head->cl_head->next->cl_head->next; in test_cil_list_append_item_append()
134 test_new_item->data = test_tree->root->cl_head->cl_head->next->cl_head; in test_cil_list_append_item_append_extra()
140 test_new_item->data = test_tree->root->cl_head->cl_head->next->cl_head->next; in test_cil_list_append_item_append_extra()
146 test_new_item->data = test_tree->root->cl_head->cl_head->next->cl_head->next->next; in test_cil_list_append_item_append_extra()
175 test_new_item->data = test_tree->root->cl_head->cl_head->next->cl_head; in test_cil_list_append_item_listnull_neg()
227 test_new_item->data = test_tree->root->cl_head->cl_head->next->cl_head; in test_cil_list_prepend_item()
255 test_new_item->data = test_tree->root->cl_head->cl_head->next->cl_head; in test_cil_list_prepend_item_prepend()
284 test_new_item->data = test_tree->root->cl_head->cl_head->next->cl_head; in test_cil_list_prepend_item_prepend_neg()
[all …]
Dtest_cil_resolve_ast.c82 struct cil_tree_node *test_curr = test_db->ast->root->cl_head->cl_head; in test_cil_resolve_name()
106 struct cil_tree_node *test_curr = test_db->ast->root->cl_head->cl_head; in test_cil_resolve_name_invalid_type_neg()
145 int rc = cil_resolve_roleallow(test_db->ast->root->cl_head->next->next, args); in test_cil_resolve_roleallow()
165 int rc = cil_resolve_roleallow(test_db->ast->root->cl_head->next, args); in test_cil_resolve_roleallow_srcdecl_neg()
184 int rc = cil_resolve_roleallow(test_db->ast->root->cl_head->next, args); in test_cil_resolve_roleallow_tgtdecl_neg()
204 int rc = cil_resolve_classmapping(test_db->ast->root->cl_head->next->next, args); in test_cil_resolve_classmapping_anon()
228 int rc2 = cil_resolve_call1(test_db->ast->root->cl_head->next->next->next, args); in test_cil_resolve_classmapping_anon_inmacro()
232 int rc3 = cil_resolve_call2(test_db->ast->root->cl_head->next->next->next, args); in test_cil_resolve_classmapping_anon_inmacro()
235 args->callstack = test_db->ast->root->cl_head->next->next->next; in test_cil_resolve_classmapping_anon_inmacro()
237 int rc = cil_resolve_classmapping(test_db->ast->root->cl_head->next->next->next->cl_head, args); in test_cil_resolve_classmapping_anon_inmacro()
[all …]
Dtest_cil_copy_ast.c65 cil_set_to_list(test_tree->root->cl_head, cil_l, 1); in test_cil_copy_list()
87 cil_set_to_list(test_tree->root->cl_head, cil_l, 1); in test_cil_copy_list_sublist()
111 cil_set_to_list(test_tree->root->cl_head, cil_l, 1); in test_cil_copy_list_sublist_extra()
159 cil_gen_block(test_db, test_tree->root->cl_head->cl_head, test_ast_node, 0); in test_cil_copy_block()
200 cil_gen_perm(test_db, test_tree->root->cl_head->cl_head->next->next->cl_head, test_ast_node); in test_cil_copy_perm()
203 cil_gen_perm(test_db, test_tree->root->cl_head->cl_head->next->next->cl_head->next, test_ast_node); in test_cil_copy_perm()
206 …cil_gen_perm(test_db, test_tree->root->cl_head->cl_head->next->next->cl_head->next->next, test_ast… in test_cil_copy_perm()
227 cil_gen_class(test_db, test_tree->root->cl_head->cl_head, test_ast_node); in test_cil_copy_class()
254 cil_gen_common(test_db, test_tree->root->cl_head->cl_head, test_ast_node); in test_cil_copy_common()
278 char *test_key = test_tree->root->cl_head->cl_head->next->data; in test_cil_copy_classcommon()
[all …]
Dtest_cil_tree.c43 CuAssertPtrEquals(tc, NULL, test_node->cl_head); in test_cil_tree_node_init()
61 CuAssertPtrEquals(tc, NULL, test_tree->root->cl_head); in test_cil_tree_init()
DCilTest.c103 if (current->cl_head == NULL) in gen_test_tree()
104 current->cl_head = node; in gen_test_tree()
118 if (current->cl_head == NULL) { in gen_test_tree()
119 current->cl_head = item; in gen_test_tree()
/external/selinux/libsepol/cil/src/
Dcil_build_ast.c375 perms = parse_current->next->next->cl_head; in cil_gen_class()
426 rc = cil_fill_list(parse_current->next->cl_head, CIL_CLASSORDER, &classorder->class_list_str); in cil_gen_classorder()
499 if (current_perm->cl_head != NULL) { in cil_gen_perm_nodes()
514 if (ast_node->cl_head == NULL) { in cil_gen_perm_nodes()
515 ast_node->cl_head = new_ast; in cil_gen_perm_nodes()
540 rc = __cil_verify_syntax(start_perm->cl_head, syntax, syntax_len); in cil_fill_perms()
637 curr = parse_current->cl_head; in cil_fill_classperms_list()
644 } else if (curr->cl_head == NULL) { in cil_fill_classperms_list()
824 …rc = cil_gen_perm_nodes(db, parse_current->next->next->cl_head, ast_node, CIL_MAP_PERM, &map->num_… in cil_gen_map_class()
926 …rc = cil_gen_perm_nodes(db, parse_current->next->next->cl_head, ast_node, CIL_PERM, &common->num_p… in cil_gen_common()
[all …]
Dcil_parser.c71 if (current->cl_head == NULL) { in cil_parser()
72 current->cl_head = node; in cil_parser()
104 if (current->cl_head == NULL) { in cil_parser()
105 current->cl_head = item; in cil_parser()
Dcil_tree.c99 if (node->cl_head != NULL) { in cil_tree_children_destroy()
100 node = node->cl_head; in cil_tree_children_destroy()
104 if (node->cl_head != NULL){ in cil_tree_children_destroy()
105 next = node->cl_head; in cil_tree_children_destroy()
110 node->parent->cl_head = NULL; in cil_tree_children_destroy()
125 new_node->cl_head = NULL; in cil_tree_node_init()
197 if (node->cl_head != NULL && !(finished & CIL_TREE_SKIP_HEAD)) { in cil_tree_walk_core()
218 if (!node || !node->cl_head) { in cil_tree_walk()
223 rc = (*first_child)(node->cl_head, extra_args); in cil_tree_walk()
230 rc = cil_tree_walk_core(node->cl_head, process_node, first_child, last_child, extra_args); in cil_tree_walk()
[all …]
Dcil_policy.c906 if (node->cl_head != NULL && node->cl_head->flavor == CIL_CONDBLOCK) { in cil_booleanif_to_policy()
907 cb = node->cl_head->data; in cil_booleanif_to_policy()
909 true_node = node->cl_head; in cil_booleanif_to_policy()
911 false_node = node->cl_head; in cil_booleanif_to_policy()
915 …if (node->cl_head != NULL && node->cl_head->next != NULL && node->cl_head->next->flavor == CIL_CON… in cil_booleanif_to_policy()
916 cb = node->cl_head->next->data; in cil_booleanif_to_policy()
918 true_node = node->cl_head->next; in cil_booleanif_to_policy()
920 false_node = node->cl_head->next; in cil_booleanif_to_policy()
985 if (current->cl_head != NULL) { in cil_name_to_policy()
986 current = current->cl_head; in cil_name_to_policy()
[all …]
Dcil_resolve_ast.c2186 current->cl_head = NULL; in cil_resolve_in()
2428 pc = new_call->args_tree->root->cl_head; in cil_resolve_call1()
2477 if (pc->cl_head != NULL) { in cil_resolve_call1()
2499 if (pc->cl_head != NULL) { in cil_resolve_call1()
2504 rc = cil_fill_level(pc->cl_head, level); in cil_resolve_call1()
2523 if (pc->cl_head != NULL) { in cil_resolve_call1()
2528 rc = cil_fill_levelrange(pc->cl_head, range); in cil_resolve_call1()
2547 if (pc->cl_head != NULL) { in cil_resolve_call1()
2552 rc = cil_fill_ipaddr(pc->cl_head, ipaddr); in cil_resolve_call1()
2577 if (pc->cl_head != NULL) { in cil_resolve_call1()
[all …]
Dcil_tree.h44 struct cil_tree_node *cl_head; //Head of child_list member
Dcil_verify.c99 } else if ((s[i] & CIL_SYN_N_LISTS) && (c->data == NULL && c->cl_head != NULL)) { in __cil_verify_syntax()
103 } else if ((s[i] & CIL_SYN_N_STRINGS) && (c->data != NULL && c->cl_head == NULL)) { in __cil_verify_syntax()
115 if (c->data != NULL && c->cl_head == NULL) { in __cil_verify_syntax()
123 if (c->data == NULL && c->cl_head != NULL) { in __cil_verify_syntax()
131 if (c->data == NULL && c->cl_head == NULL) { in __cil_verify_syntax()
960 struct cil_tree_node *cond_block = node->cl_head; in __cil_verify_booleanif()
1236 for (curr_com_perm = common_node->cl_head; in __cil_verify_class()
1242 for (curr_class_perm = node->cl_head; in __cil_verify_class()
Dcil_copy_ast.c1915 if (parent->cl_head == NULL) { in __cil_copy_node_helper()
1916 parent->cl_head = new; in __cil_copy_node_helper()
1923 if (orig->cl_head != NULL) { in __cil_copy_node_helper()
Dcil_binary.c291 struct cil_tree_node *cil_perm = node->cl_head; in cil_common_to_policydb()
343 struct cil_tree_node *cil_perm = node->cl_head; in cil_classorder_to_policydb()
1770 struct cil_tree_node *cb_node = node->cl_head; in cil_booleanif_to_policydb()
1820 for (cb_node = node->cl_head; cb_node != NULL; cb_node = cb_node->next) { in cil_booleanif_to_policydb()
Dcil.c1647 if (current->cl_head) { in cil_destroy_ast_symtabs()
1648 cil_destroy_ast_symtabs(current->cl_head); in cil_destroy_ast_symtabs()