/external/selinux/libsepol/cil/src/ |
D | cil_binary.h | 254 int cil_avrule_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_avrule *cil_avrule);
|
D | cil_binary.c | 1452 int __cil_avrule_to_avtab(policydb_t *pdb, const struct cil_db *db, struct cil_avrule *cil_avrule, … in __cil_avrule_to_avtab() argument 1455 uint16_t kind = cil_avrule->rule_kind; in __cil_avrule_to_avtab() 1458 struct cil_list *classperms = cil_avrule->perms.classperms; in __cil_avrule_to_avtab() 1463 if (cil_avrule->rule_kind == CIL_AVRULE_DONTAUDIT && db->disable_dontaudit == CIL_TRUE) { in __cil_avrule_to_avtab() 1469 src = cil_avrule->src; in __cil_avrule_to_avtab() 1470 tgt = cil_avrule->tgt; in __cil_avrule_to_avtab() 1569 int cil_avrule_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_avrule *cil_avrule) in cil_avrule_to_policydb() argument 1571 return __cil_avrule_to_avtab(pdb, db, cil_avrule, NULL, CIL_FALSE); in cil_avrule_to_policydb() 1831 int cil_avrulex_to_hashtable(policydb_t *pdb, const struct cil_db *db, struct cil_avrule *cil_avrul… in cil_avrulex_to_hashtable() 1956 struct cil_avrule *cil_avrule; in __cil_cond_to_policydb_helper() local [all …]
|
D | cil_find.c | 294 …l_find_matching_avrule(struct cil_tree_node *node, struct cil_avrule *avrule, struct cil_avrule *t… in cil_find_matching_avrule()
|
D | cil_write_ast.c | 743 static int cil_write_avrule_x(struct cil_avrule *avrule, FILE *cil_out) { in cil_write_avrule_x() 789 static int cil_write_avrule_orig(struct cil_avrule *avrule, FILE *cil_out) { in cil_write_avrule_orig() 828 struct cil_avrule *avrule = (struct cil_avrule *)node->data; in cil_write_avrule()
|
D | cil_internal.h | 600 struct cil_avrule { struct 1024 void cil_avrule_init(struct cil_avrule **avrule);
|
D | android.c | 542 struct cil_avrule *avrule = (struct cil_avrule *)node->data; in cil_attrib_avrule()
|
D | cil_reset_ast.c | 197 static void cil_reset_avrule(struct cil_avrule *rule) in cil_reset_avrule()
|
D | cil_build_ast.h | 113 void cil_destroy_avrule(struct cil_avrule *rule);
|
D | cil_policy.c | 1157 static void cil_av_rulex_to_policy(FILE *out, struct cil_avrule *rule) in cil_av_rulex_to_policy() 1188 static void cil_av_rule_to_policy(FILE *out, struct cil_avrule *rule) in cil_av_rule_to_policy() 1328 struct cil_avrule *rule = node->data; in __cil_block_te_rules_to_policy_helper()
|
D | cil_verify.c | 881 struct cil_avrule *avrule = NULL; in __cil_verify_booleanif_helper() 1319 struct cil_avrule *avrulex = node->data; in __cil_verify_avrulex()
|
D | cil.c | 1048 switch (((struct cil_avrule *)node->data)->rule_kind) { in cil_node_to_string() 1062 switch (((struct cil_avrule *)node->data)->rule_kind) { in cil_node_to_string() 2192 void cil_avrule_init(struct cil_avrule **avrule) in cil_avrule_init()
|
D | cil_copy_ast.c | 817 struct cil_avrule *orig = data; in cil_copy_avrule() 818 struct cil_avrule *new = NULL; in cil_copy_avrule()
|
D | cil_post.c | 1563 struct cil_avrule *rule = node->data; in __cil_post_db_attr_helper() 2220 struct cil_avrule *avrule = node->data; in __cil_post_db_classperms_helper()
|
D | cil_tree.c | 1167 struct cil_avrule *rule = node->data; in cil_tree_print_node()
|
D | cil_build_ast.c | 2033 struct cil_avrule *rule = NULL; in cil_gen_avrule() 2069 void cil_destroy_avrule(struct cil_avrule *rule) in cil_destroy_avrule() 2193 struct cil_avrule *rule = NULL; in cil_gen_avrulex()
|
D | cil_resolve_ast.c | 311 struct cil_avrule *rule = current->data; in cil_resolve_avrule()
|
/external/selinux/libsepol/cil/test/unit/ |
D | test_cil_copy_ast.c | 604 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()
|
D | test_cil_list.c | 37 struct cil_avrule *test_avrule = malloc(sizeof(*test_avrule)); in test_cil_list_init()
|
D | test_cil_build_ast.c | 72 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()
|