Searched refs:cil_avrule (Results 1 - 16 of 16) sorted by relevance

/external/selinux/libsepol/cil/src/
H A Dcil_binary.h249 * @param[in] datum The cil_avrule datum.
253 int cil_avrule_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_avrule *cil_avrule, struct cil_list *neverallows);
H A Dcil_binary.c1498 int __cil_avrule_to_avtab(policydb_t *pdb, const struct cil_db *db, struct cil_avrule *cil_avrule, struct cil_list *neverallows, cond_node_t *cond_node, enum cil_flavor cond_flavor) argument
1501 uint16_t kind = cil_avrule->rule_kind;
1504 struct cil_list *classperms = cil_avrule->classperms;
1506 if (cil_avrule->rule_kind == CIL_AVRULE_DONTAUDIT && db->disable_dontaudit == CIL_TRUE) {
1512 if (cil_avrule->rule_kind == CIL_AVRULE_NEVERALLOW && db->disable_neverallow == CIL_TRUE) {
1518 src = cil_avrule->src;
1519 tgt = cil_avrule->tgt;
1551 int cil_avrule_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_avrule *cil_avrule, struc argument
1566 struct cil_avrule *cil_avrule; local
[all...]
H A Dcil_internal.h546 struct cil_avrule { struct
930 void cil_avrule_init(struct cil_avrule **avrule);
H A Dcil_policy.c575 int cil_avrule_to_policy(FILE **file_arr, uint32_t file_index, struct cil_avrule *rule)
843 rc = cil_avrule_to_policy(file_arr, *file_index, (struct cil_avrule*)node->data);
1006 struct cil_avrule *avrule = (struct cil_avrule*)current->data;
H A Dcil_reset_ast.c171 static void cil_reset_avrule(struct cil_avrule *rule)
H A Dcil_build_ast.h109 void cil_destroy_avrule(struct cil_avrule *rule);
H A Dcil_copy_ast.c748 struct cil_avrule *orig = data;
749 struct cil_avrule *new = NULL;
H A Dcil.c983 switch (((struct cil_avrule *)node->data)->rule_kind) {
2069 void cil_avrule_init(struct cil_avrule **avrule)
H A Dcil_verify.c872 struct cil_avrule *avrule = NULL;
H A Dcil_post.c1550 struct cil_avrule *avrule = node->data;
H A Dcil_tree.c1048 struct cil_avrule *rule = node->data;
H A Dcil_build_ast.c1859 struct cil_avrule *rule = NULL;
1895 void cil_destroy_avrule(struct cil_avrule *rule)
H A Dcil_resolve_ast.c279 struct cil_avrule *rule = current->data;
/external/selinux/libsepol/cil/test/unit/
H A Dtest_cil_list.c37 struct cil_avrule *test_avrule = malloc(sizeof(*test_avrule));
H A Dtest_cil_copy_ast.c604 struct cil_avrule *test_copy;
612 CuAssertIntEquals(tc, ((struct cil_avrule *)test_ast_node->data)->rule_kind, test_copy->rule_kind);
613 CuAssertStrEquals(tc, ((struct cil_avrule *)test_ast_node->data)->src_str, test_copy->src_str);
614 CuAssertStrEquals(tc, ((struct cil_avrule *)test_ast_node->data)->tgt_str, test_copy->tgt_str);
615 CuAssertStrEquals(tc, ((struct cil_avrule *)test_ast_node->data)->classpermset->class_str, test_copy->classpermset->class_str);
616 CuAssertIntEquals(tc, ((struct cil_avrule *)test_ast_node->data)->classpermset->permset->perms_list_str->head->flavor, test_copy->classpermset->permset->perms_list_str->head->flavor);
617 CuAssertStrEquals(tc, (char*)((struct cil_avrule *)test_ast_node->data)->classpermset->permset->perms_list_str->head->data, (char*)test_copy->classpermset->permset->perms_list_str->head->data);
618 CuAssertIntEquals(tc, ((struct cil_avrule *)test_ast_node->data)->classpermset->permset->perms_list_str->head->next->flavor, test_copy->classpermset->permset->perms_list_str->head->next->flavor);
619 CuAssertStrEquals(tc, (char*)((struct cil_avrule *)test_ast_node->data)->classpermset->permset->perms_list_str->head->next->data, (char*)test_copy->classpermset->permset->perms_list_str->head->next->data);
H A Dtest_cil_build_ast.c72 struct cil_avrule *test_avrule;
103 struct cil_avrule *test_avrule;
134 struct cil_avrule *test_avrule;
8156 CuAssertStrEquals(tc, ((struct cil_avrule*)test_ast_node->data)->src_str, test_current->next->data);
8157 CuAssertStrEquals(tc, ((struct cil_avrule*)test_ast_node->data)->tgt_str, test_current->next->next->data);
8158 CuAssertStrEquals(tc, ((struct cil_avrule*)test_ast_node->data)->classpermset->class_str, test_current->next->next->next->cl_head->data);
8160 CuAssertPtrNotNull(tc, ((struct cil_avrule*)test_ast_node->data)->classpermset->permset->perms_list_str);
8162 struct cil_list_item *test_list = ((struct cil_avrule*)test_ast_node->data)->classpermset->permset->perms_list_str->head;

Completed in 159 milliseconds