Home
last modified time | relevance | path

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

/external/selinux/libsepol/cil/src/
Dcil_binary.h253 int cil_avrule_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_avrule *cil_avrule,…
Dcil_binary.c1498 int __cil_avrule_to_avtab(policydb_t *pdb, const struct cil_db *db, struct cil_avrule *cil_avrule, … in __cil_avrule_to_avtab() argument
1501 uint16_t kind = cil_avrule->rule_kind; in __cil_avrule_to_avtab()
1504 struct cil_list *classperms = cil_avrule->classperms; in __cil_avrule_to_avtab()
1506 if (cil_avrule->rule_kind == CIL_AVRULE_DONTAUDIT && db->disable_dontaudit == CIL_TRUE) { in __cil_avrule_to_avtab()
1512 if (cil_avrule->rule_kind == CIL_AVRULE_NEVERALLOW && db->disable_neverallow == CIL_TRUE) { in __cil_avrule_to_avtab()
1518 src = cil_avrule->src; in __cil_avrule_to_avtab()
1519 tgt = cil_avrule->tgt; in __cil_avrule_to_avtab()
1551 int cil_avrule_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_avrule *cil_avrule,… in cil_avrule_to_policydb() argument
1553 return __cil_avrule_to_avtab(pdb, db, cil_avrule, neverallows, NULL, CIL_FALSE); in cil_avrule_to_policydb()
1566 struct cil_avrule *cil_avrule; in __cil_cond_to_policydb_helper() local
[all …]
Dcil_internal.h546 struct cil_avrule { struct
930 void cil_avrule_init(struct cil_avrule **avrule);
Dcil_policy.c575 int cil_avrule_to_policy(FILE **file_arr, uint32_t file_index, struct cil_avrule *rule) in cil_avrule_to_policy()
843 rc = cil_avrule_to_policy(file_arr, *file_index, (struct cil_avrule*)node->data); in __cil_booleanif_node_helper()
1006 struct cil_avrule *avrule = (struct cil_avrule*)current->data; in cil_name_to_policy()
Dcil_reset_ast.c171 static void cil_reset_avrule(struct cil_avrule *rule) in cil_reset_avrule()
Dcil_build_ast.h109 void cil_destroy_avrule(struct cil_avrule *rule);
Dcil_copy_ast.c748 struct cil_avrule *orig = data; in cil_copy_avrule()
749 struct cil_avrule *new = NULL; in cil_copy_avrule()
Dcil.c983 switch (((struct cil_avrule *)node->data)->rule_kind) { in cil_node_to_string()
2069 void cil_avrule_init(struct cil_avrule **avrule) in cil_avrule_init()
Dcil_verify.c872 struct cil_avrule *avrule = NULL; in __cil_verify_booleanif_helper()
Dcil_tree.c1048 struct cil_avrule *rule = node->data; in cil_tree_print_node()
Dcil_post.c1550 struct cil_avrule *avrule = node->data; in __cil_post_db_classperms_helper()
Dcil_build_ast.c1859 struct cil_avrule *rule = NULL; in cil_gen_avrule()
1895 void cil_destroy_avrule(struct cil_avrule *rule) in cil_destroy_avrule()
Dcil_resolve_ast.c279 struct cil_avrule *rule = current->data; in cil_resolve_avrule()
/external/selinux/libsepol/cil/test/unit/
Dtest_cil_copy_ast.c604 struct cil_avrule *test_copy; in test_cil_copy_avrule()
612 CuAssertIntEquals(tc, ((struct cil_avrule *)test_ast_node->data)->rule_kind, test_copy->rule_kind); in test_cil_copy_avrule()
613 CuAssertStrEquals(tc, ((struct cil_avrule *)test_ast_node->data)->src_str, test_copy->src_str); in test_cil_copy_avrule()
614 CuAssertStrEquals(tc, ((struct cil_avrule *)test_ast_node->data)->tgt_str, test_copy->tgt_str); in test_cil_copy_avrule()
615 …CuAssertStrEquals(tc, ((struct cil_avrule *)test_ast_node->data)->classpermset->class_str, test_co… in test_cil_copy_avrule()
616 …CuAssertIntEquals(tc, ((struct cil_avrule *)test_ast_node->data)->classpermset->permset->perms_lis… in test_cil_copy_avrule()
617 …CuAssertStrEquals(tc, (char*)((struct cil_avrule *)test_ast_node->data)->classpermset->permset->pe… in test_cil_copy_avrule()
618 …CuAssertIntEquals(tc, ((struct cil_avrule *)test_ast_node->data)->classpermset->permset->perms_lis… in test_cil_copy_avrule()
619 …CuAssertStrEquals(tc, (char*)((struct cil_avrule *)test_ast_node->data)->classpermset->permset->pe… in test_cil_copy_avrule()
Dtest_cil_list.c37 struct cil_avrule *test_avrule = malloc(sizeof(*test_avrule)); in test_cil_list_init()
Dtest_cil_build_ast.c72 struct cil_avrule *test_avrule; in test_cil_parse_to_list()
103 struct cil_avrule *test_avrule; in test_cil_parse_to_list_currnull_neg()
134 struct cil_avrule *test_avrule; in test_cil_parse_to_list_listnull_neg()
8156 …CuAssertStrEquals(tc, ((struct cil_avrule*)test_ast_node->data)->src_str, test_current->next->data… in test_cil_gen_avrule()
8157 …CuAssertStrEquals(tc, ((struct cil_avrule*)test_ast_node->data)->tgt_str, test_current->next->next… in test_cil_gen_avrule()
8158 …CuAssertStrEquals(tc, ((struct cil_avrule*)test_ast_node->data)->classpermset->class_str, test_cur… in test_cil_gen_avrule()
8160 …CuAssertPtrNotNull(tc, ((struct cil_avrule*)test_ast_node->data)->classpermset->permset->perms_lis… in test_cil_gen_avrule()
8162 …struct cil_list_item *test_list = ((struct cil_avrule*)test_ast_node->data)->classpermset->permset… in test_cil_gen_avrule()