Home
last modified time | relevance | path

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

/third_party/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()
/third_party/selinux/libsepol/cil/src/
Dcil_tree.c65 if (node->cl_head && node->cl_head->data == CIL_KEY_SRC_INFO) { in cil_tree_get_next_path()
66 if (!node->cl_head->next || !node->cl_head->next->next || !node->cl_head->next->next->next) { in cil_tree_get_next_path()
70 *info_kind = node->cl_head->next->data; in cil_tree_get_next_path()
71 rc = cil_string_to_uint32(node->cl_head->next->next->data, hll_line, 10); in cil_tree_get_next_path()
75 *path = node->cl_head->next->next->next->data; in cil_tree_get_next_path()
167 if (node->cl_head != NULL) { in cil_tree_subtree_has_decl()
168 if (cil_tree_subtree_has_decl(node->cl_head)) in cil_tree_subtree_has_decl()
213 curr = node->cl_head; in cil_tree_children_destroy()
220 node->cl_head = NULL; in cil_tree_children_destroy()
227 new_node->cl_head = NULL; in cil_tree_node_init()
[all …]
Dcil_build_ast.c478 perms = parse_current->next->next->cl_head; in cil_gen_class()
537 rc = cil_fill_list(parse_current->next->cl_head, CIL_CLASSORDER, &classorder->class_list_str); in cil_gen_classorder()
629 if (current_perm->cl_head != NULL) { in cil_gen_perm_nodes()
645 if (ast_node->cl_head == NULL) { in cil_gen_perm_nodes()
646 ast_node->cl_head = new_ast; in cil_gen_perm_nodes()
673 rc = __cil_verify_syntax(start_perm->cl_head, syntax, syntax_len); in cil_fill_perms()
761 curr = parse_current->cl_head; in cil_fill_classperms_list()
768 } else if (curr->cl_head == NULL) { in cil_fill_classperms_list()
946 …rc = cil_gen_perm_nodes(db, parse_current->next->next->cl_head, ast_node, CIL_MAP_PERM, &map->num_… in cil_gen_map_class()
1046 …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_write_ast.c482 } else if (arg_node->cl_head) { in write_call_args_tree()
484 write_call_args_tree(out, arg_node->cl_head); in write_call_args_tree()
575 if (!node->cl_head) in cil_write_ast_node()
588 if (!node->cl_head) in cil_write_ast_node()
596 if (!node->cl_head) in cil_write_ast_node()
608 if (!node->cl_head) in cil_write_ast_node()
620 if (!node->cl_head) in cil_write_ast_node()
628 if (!node->cl_head) in cil_write_ast_node()
644 if (!node->cl_head) in cil_write_ast_node()
659 if (!node->cl_head) in cil_write_ast_node()
[all …]
Dcil_verify.c153 if ((s[i] & CIL_SYN_STRING) && c->data != NULL && c->cl_head == NULL) { in __cil_verify_syntax()
156 } else if ((s[i] & CIL_SYN_LIST) && c->data == NULL && c->cl_head != NULL) { in __cil_verify_syntax()
159 } else if ((s[i] & CIL_SYN_EMPTY_LIST) && c->data == NULL && c->cl_head == NULL) { in __cil_verify_syntax()
164 if ((s[i] & CIL_SYN_N_LISTS) && c->data == NULL && c->cl_head != NULL) { in __cil_verify_syntax()
166 } else if ((s[i] & CIL_SYN_N_STRINGS) && c->data != NULL && c->cl_head == NULL) { in __cil_verify_syntax()
370 if (current->cl_head->data == CIL_KEY_CONDTRUE) { in cil_verify_conditional_blocks()
372 } else if (current->cl_head->data == CIL_KEY_CONDFALSE) { in cil_verify_conditional_blocks()
381 if (current->cl_head->data == CIL_KEY_CONDTRUE) { in cil_verify_conditional_blocks()
386 } else if (current->cl_head->data == CIL_KEY_CONDFALSE) { in cil_verify_conditional_blocks()
1112 struct cil_tree_node *cond_block = node->cl_head; in __cil_verify_booleanif()
[all …]
Dcil_tree.h44 struct cil_tree_node *cl_head; //Head of child_list member
Dcil_parser.c88 if (current->cl_head == NULL) { in insert_node()
89 current->cl_head = node; in insert_node()
Dcil_resolve_ast.c2727 arg_node = call->args_tree->root->cl_head; in cil_build_call_args()
2818 if (arg_node->cl_head != NULL) { in cil_build_call_args()
2846 if (arg_node->cl_head != NULL) { in cil_build_call_args()
2851 rc = cil_fill_level(arg_node->cl_head, level); in cil_build_call_args()
2876 if (arg_node->cl_head != NULL) { in cil_build_call_args()
2881 rc = cil_fill_levelrange(arg_node->cl_head, range); in cil_build_call_args()
2951 if (arg_node->cl_head != NULL) { in cil_build_call_args()
3400 if (current->cl_head != NULL && current->cl_head->flavor == CIL_CONDBLOCK) { in cil_resolve_tunif()
3401 cb = current->cl_head->data; in cil_resolve_tunif()
3403 true_node = current->cl_head; in cil_resolve_tunif()
[all …]
Dcil_policy.c737 perm = node->cl_head; in cil_commons_to_policy()
762 if (node->cl_head != NULL) { in cil_classes_to_policy()
763 struct cil_tree_node *perm = node->cl_head; in cil_classes_to_policy()
1447 n = node->cl_head; in __cil_te_rules_to_policy_helper()
Dcil_copy_ast.c2078 if (parent->cl_head == NULL) { in __cil_copy_node_helper()
2079 parent->cl_head = new; in __cil_copy_node_helper()
2086 if (orig->cl_head != NULL) { in __cil_copy_node_helper()
Dcil.c1940 if (current->cl_head) { in cil_destroy_ast_symtabs()
1941 cil_destroy_ast_symtabs(current->cl_head); in cil_destroy_ast_symtabs()
Dcil_binary.c245 struct cil_tree_node *cil_perm = node->cl_head; in cil_common_to_policydb()
334 for (curr = NODE(cil_class->common)->cl_head, i = 1; curr; curr = curr->next, i++) { in cil_classorder_to_policydb()
340 for (curr = NODE(cil_class)->cl_head; curr; curr = curr->next) { in cil_classorder_to_policydb()
2282 for (cb_node = node->cl_head; cb_node != NULL; cb_node = cb_node->next) { in cil_booleanif_to_policydb()