Lines Matching refs:test_avrule
72 struct cil_avrule *test_avrule;
73 cil_avrule_init(&test_avrule);
74 test_avrule->rule_kind = CIL_AVRULE_ALLOWED;
75 test_avrule->src_str = cil_strdup(test_current->next->data);
76 test_avrule->tgt_str = cil_strdup(test_current->next->next->data);
78 cil_classpermset_init(&test_avrule->classpermset);
80 test_avrule->classpermset->class_str = cil_strdup(test_current->next->next->next->cl_head->data);
82 cil_permset_init(&test_avrule->classpermset->permset);
84 cil_list_init(&test_avrule->classpermset->permset->perms_list_str);
88 int rc = cil_parse_to_list(test_current, test_avrule->classpermset->permset->perms_list_str, CIL_AST_STR);
91 cil_destroy_avrule(test_avrule);
103 struct cil_avrule *test_avrule;
104 cil_avrule_init(&test_avrule);
105 test_avrule->rule_kind = CIL_AVRULE_ALLOWED;
106 test_avrule->src_str = cil_strdup(test_current->next->data);
107 test_avrule->tgt_str = cil_strdup(test_current->next->next->data);
109 cil_classpermset_init(&test_avrule->classpermset);
111 test_avrule->classpermset->class_str = cil_strdup(test_current->next->next->next->cl_head->data);
113 cil_permset_init(&test_avrule->classpermset->permset);
115 cil_list_init(&test_avrule->classpermset->permset->perms_list_str);
119 int rc = cil_parse_to_list(test_current, test_avrule->classpermset->permset->perms_list_str, CIL_AST_STR);
122 cil_destroy_avrule(test_avrule);
134 struct cil_avrule *test_avrule;
135 cil_avrule_init(&test_avrule);
136 test_avrule->rule_kind = CIL_AVRULE_ALLOWED;
137 test_avrule->src_str = cil_strdup(test_current->next->data);
138 test_avrule->tgt_str = cil_strdup(test_current->next->next->data);
140 cil_classpermset_init(&test_avrule->classpermset);
142 test_avrule->classpermset->class_str = cil_strdup(test_current->next->next->next->cl_head->data);
144 cil_permset_init(&test_avrule->classpermset->permset);
148 int rc = cil_parse_to_list(test_current, test_avrule->classpermset->permset->perms_list_str, CIL_AST_STR);
151 cil_destroy_avrule(test_avrule);