Searched refs:test_avrule (Results 1 – 2 of 2) sorted by relevance
37 struct cil_avrule *test_avrule = malloc(sizeof(*test_avrule)); in test_cil_list_init() local39 cil_classpermset_init(&test_avrule->classpermset); in test_cil_list_init()40 cil_permset_init(&test_avrule->classpermset->permset); in test_cil_list_init()42 cil_list_init(&test_avrule->classpermset->permset->perms_list_str); in test_cil_list_init()43 CuAssertPtrNotNull(tc, test_avrule->classpermset->permset->perms_list_str); in test_cil_list_init()45 cil_destroy_avrule(test_avrule); in test_cil_list_init()
72 struct cil_avrule *test_avrule; in test_cil_parse_to_list() local73 cil_avrule_init(&test_avrule); in test_cil_parse_to_list()74 test_avrule->rule_kind = CIL_AVRULE_ALLOWED; in test_cil_parse_to_list()75 test_avrule->src_str = cil_strdup(test_current->next->data); in test_cil_parse_to_list()76 test_avrule->tgt_str = cil_strdup(test_current->next->next->data); in test_cil_parse_to_list()78 cil_classpermset_init(&test_avrule->classpermset); 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()82 cil_permset_init(&test_avrule->classpermset->permset); in test_cil_parse_to_list()84 cil_list_init(&test_avrule->classpermset->permset->perms_list_str); in test_cil_parse_to_list()88 …int rc = cil_parse_to_list(test_current, test_avrule->classpermset->permset->perms_list_str, CIL_A… in test_cil_parse_to_list()[all …]