Home
last modified time | relevance | path

Searched refs:cl_head (Results 1 – 18 of 18) 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.c409 perms = parse_current->next->next->cl_head; in cil_gen_class()
466 rc = cil_fill_list(parse_current->next->cl_head, CIL_CLASSORDER, &classorder->class_list_str); in cil_gen_classorder()
558 if (current_perm->cl_head != NULL) { in cil_gen_perm_nodes()
574 if (ast_node->cl_head == NULL) { in cil_gen_perm_nodes()
575 ast_node->cl_head = new_ast; in cil_gen_perm_nodes()
602 rc = __cil_verify_syntax(start_perm->cl_head, syntax, syntax_len); in cil_fill_perms()
699 curr = parse_current->cl_head; in cil_fill_classperms_list()
706 } else if (curr->cl_head == NULL) { in cil_fill_classperms_list()
884 …rc = cil_gen_perm_nodes(db, parse_current->next->next->cl_head, ast_node, CIL_MAP_PERM, &map->num_… in cil_gen_map_class()
984 …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_tree.c72 if (node->cl_head->data == CIL_KEY_SRC_INFO) { in cil_tree_get_next_path()
74 *path = node->cl_head->next->next->data; in cil_tree_get_next_path()
75 *is_cil = (node->cl_head->next->data == CIL_KEY_SRC_CIL); in cil_tree_get_next_path()
185 if (node->cl_head != NULL) { in cil_tree_children_destroy()
186 node = node->cl_head; in cil_tree_children_destroy()
190 if (node->cl_head != NULL){ in cil_tree_children_destroy()
191 next = node->cl_head; in cil_tree_children_destroy()
196 node->parent->cl_head = NULL; in cil_tree_children_destroy()
211 new_node->cl_head = NULL; in cil_tree_node_init()
283 if (node->cl_head != NULL && !(finished & CIL_TREE_SKIP_HEAD)) { in cil_tree_walk_core()
[all …]
Dcil_resolve_ast.c2499 current->cl_head = NULL; in cil_resolve_in()
2803 pc = new_call->args_tree->root->cl_head; in cil_resolve_call1()
2852 if (pc->cl_head != NULL) { in cil_resolve_call1()
2875 if (pc->cl_head != NULL) { in cil_resolve_call1()
2880 rc = cil_fill_level(pc->cl_head, level); in cil_resolve_call1()
2900 if (pc->cl_head != NULL) { in cil_resolve_call1()
2905 rc = cil_fill_levelrange(pc->cl_head, range); in cil_resolve_call1()
2925 if (pc->cl_head != NULL) { in cil_resolve_call1()
2930 rc = cil_fill_ipaddr(pc->cl_head, ipaddr); in cil_resolve_call1()
2956 if (pc->cl_head != NULL) { in cil_resolve_call1()
[all …]
Dcil_verify.c106 } else if ((s[i] & CIL_SYN_N_LISTS) && (c->data == NULL && c->cl_head != NULL)) { in __cil_verify_syntax()
110 } else if ((s[i] & CIL_SYN_N_STRINGS) && (c->data != NULL && c->cl_head == NULL)) { in __cil_verify_syntax()
122 if (c->data != NULL && c->cl_head == NULL) { in __cil_verify_syntax()
130 if (c->data == NULL && c->cl_head != NULL) { in __cil_verify_syntax()
138 if (c->data == NULL && c->cl_head == NULL) { in __cil_verify_syntax()
965 struct cil_tree_node *cond_block = node->cl_head; in __cil_verify_booleanif()
1333 for (curr_com_perm = common_node->cl_head; in __cil_verify_class()
1339 for (curr_class_perm = node->cl_head; in __cil_verify_class()
Dcil_tree.h44 struct cil_tree_node *cl_head; //Head of child_list member
Dcil_parser.c93 if (current->cl_head == NULL) { in insert_node()
94 current->cl_head = node; in insert_node()
Dandroid.c808 if (ast_parent->cl_head == NULL) in cil_build_mappings_tree()
809 ast_parent->cl_head = ast_node; in cil_build_mappings_tree()
Dcil_policy.c740 perm = node->cl_head; in cil_commons_to_policy()
765 if (node->cl_head != NULL) { in cil_classes_to_policy()
766 struct cil_tree_node *perm = node->cl_head; in cil_classes_to_policy()
1449 n = node->cl_head; in __cil_te_rules_to_policy_helper()
Dcil_copy_ast.c2114 if (parent->cl_head == NULL) { in __cil_copy_node_helper()
2115 parent->cl_head = new; in __cil_copy_node_helper()
2122 if (orig->cl_head != NULL) { in __cil_copy_node_helper()
Dcil_binary.c254 struct cil_tree_node *cil_perm = node->cl_head; in cil_common_to_policydb()
343 for (curr = NODE(cil_class->common)->cl_head, i = 1; curr; curr = curr->next, i++) { in cil_classorder_to_policydb()
349 for (curr = NODE(cil_class)->cl_head; curr; curr = curr->next) { in cil_classorder_to_policydb()
2243 struct cil_tree_node *cb_node = node->cl_head; in cil_booleanif_to_policydb()
2293 for (cb_node = node->cl_head; cb_node != NULL; cb_node = cb_node->next) { in cil_booleanif_to_policydb()
Dcil.c1751 if (current->cl_head) { in cil_destroy_ast_symtabs()
1752 cil_destroy_ast_symtabs(current->cl_head); in cil_destroy_ast_symtabs()
Dcil_write_ast.c443 if (node->cl_head == NULL) { in cil_write_class()