/third_party/selinux/libsepol/cil/test/unit/ |
H A D | test_cil_build_ast.c | 70 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() [all...] |
H A D | test_cil_list.c | 70 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 in test_cil_list_append_item_append_extra() [all...] |
H A D | test_cil_resolve_ast.c | 82 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 in test_cil_resolve_classmapping_anon_inmacro() [all...] |
H A D | test_cil_copy_ast.c | 65 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 in test_cil_copy_perm() [all...] |
H A D | test_cil_tree.c | 43 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()
|
H A D | CilTest.c | 103 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/ |
H A D | cil_tree.c | 56 if (node->cl_head && node->cl_head->data == CIL_KEY_SRC_INFO) { in cil_tree_get_next_path() 57 if (!node->cl_head->next || !node->cl_head->next->next || !node->cl_head->next->next->next) { in cil_tree_get_next_path() 61 *info_kind = node->cl_head->next->data; in cil_tree_get_next_path() 62 rc = cil_string_to_uint32(node->cl_head->next->next->data, hll_line, 10); in cil_tree_get_next_path() 66 *path = node->cl_head->next->next->next->data; in cil_tree_get_next_path() 158 if (node->cl_head != NULL) { in cil_tree_subtree_has_decl() 159 if (cil_tree_subtree_has_decl(node->cl_head)) in cil_tree_subtree_has_decl() [all...] |
H A D | cil_build_ast.c | 478 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_perms); in cil_gen_map_class() 1046 rc = cil_gen_perm_nodes(db, parse_current->next->next->cl_head, ast_nod in cil_gen_common() [all...] |
H A D | cil_write_ast.c | 482 } 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...] |
H A D | cil_verify.c | 153 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() 1114 struct cil_tree_node *cond_block = node->cl_head; in __cil_verify_booleanif() [all...] |
H A D | cil_tree.h | 44 struct cil_tree_node *cl_head; //Head of child_list member
|
H A D | cil_parser.c | 88 if (current->cl_head == NULL) { in insert_node() 89 current->cl_head = node; in insert_node()
|
H A D | cil_resolve_ast.c | 2403 for (node = node->cl_head; node; node = node->next) { in cil_mark_subtree_abstract() 2756 arg_node = call->args_tree->root->cl_head; in cil_build_call_args() 2847 if (arg_node->cl_head != NULL) { in cil_build_call_args() 2875 if (arg_node->cl_head != NULL) { in cil_build_call_args() 2880 rc = cil_fill_level(arg_node->cl_head, level); in cil_build_call_args() 2905 if (arg_node->cl_head != NULL) { in cil_build_call_args() 2910 rc = cil_fill_levelrange(arg_node->cl_head, range); in cil_build_call_args() 2980 if (arg_node->cl_head != NULL) { in cil_build_call_args() 3429 if (current->cl_head != NULL && current->cl_head in cil_resolve_tunif() [all...] |
H A D | cil_policy.c | 737 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()
|
H A D | cil_copy_ast.c | 2084 if (parent->cl_head == NULL) { in __cil_copy_node_helper() 2085 parent->cl_head = new; in __cil_copy_node_helper() 2092 if (orig->cl_head != NULL) { in __cil_copy_node_helper()
|
H A D | cil_binary.c | 245 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() 2364 for (cb_node = node->cl_head; cb_node != NULL; cb_node = cb_node->next) { in cil_booleanif_to_policydb()
|
H A D | cil.c | 1949 if (current->cl_head) { in cil_destroy_ast_symtabs() 1950 cil_destroy_ast_symtabs(current->cl_head); in cil_destroy_ast_symtabs()
|