Home
last modified time | relevance | path

Searched refs:rule_kind (Results 1 – 12 of 12) sorted by relevance

/external/selinux/libsepol/cil/src/
Dcil_build_ast.h108 …en_avrule(struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, uint32_t rule_kind);
110 …type_rule(struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, uint32_t rule_kind);
Dcil_internal.h547 uint32_t rule_kind; member
560 uint32_t rule_kind; member
Dcil_copy_ast.c753 new->rule_kind = orig->rule_kind; in cil_copy_avrule()
770 new->rule_kind = orig->rule_kind; in cil_copy_type_rule()
Dcil_policy.c582 switch (rule->rule_kind) { in cil_avrule_to_policy()
597 rule->rule_kind, src_str, tgt_str); in cil_avrule_to_policy()
613 switch (rule->rule_kind) { in cil_typerule_to_policy()
Dcil.c983 switch (((struct cil_avrule *)node->data)->rule_kind) { in cil_node_to_string()
999 switch (((struct cil_type_rule *)node->data)->rule_kind) { in cil_node_to_string()
2073 (*avrule)->rule_kind = CIL_NONE; in cil_avrule_init()
2085 (*type_rule)->rule_kind = CIL_NONE; in cil_type_rule_init()
Dcil_binary.c1084 uint16_t kind = cil_rule->rule_kind; in __cil_type_rule_to_avtab()
1160 trans.rule_kind = CIL_TYPE_TRANSITION; in __cil_typetransition_to_avtab()
1501 uint16_t kind = cil_avrule->rule_kind; 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()
3206 if (rule->rule_kind == CIL_AVRULE_NEVERALLOW) { in __cil_node_to_policydb()
3268 if (rule->rule_kind != CIL_AVRULE_NEVERALLOW) { in __cil_node_to_policydb()
Dcil_verify.c838 ckey.key4 = (intptr_t)typerule->rule_kind; in __cil_verify_rule()
874 if (avrule->rule_kind == CIL_AVRULE_NEVERALLOW) { in __cil_verify_booleanif_helper()
Dcil_tree.c1049 switch (rule->rule_kind) { in cil_tree_print_node()
1084 switch (rule->rule_kind) { in cil_tree_print_node()
Dcil_build_ast.c1849 …gen_avrule(struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, uint32_t rule_kind) in cil_gen_avrule() argument
1873 rule->rule_kind = rule_kind; in cil_gen_avrule()
1906 …_type_rule(struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, uint32_t rule_kind) in cil_gen_type_rule() argument
1931 rule->rule_kind = rule_kind; in cil_gen_type_rule()
2996 rule->rule_kind = CIL_TYPE_TRANSITION; in cil_gen_typetransition()
Dcil_resolve_ast.c293 if (rule->rule_kind != CIL_AVRULE_NEVERALLOW) { in cil_resolve_avrule()
305 if (rule->rule_kind != CIL_AVRULE_NEVERALLOW) { in cil_resolve_avrule()
/external/selinux/libsepol/cil/test/unit/
Dtest_cil_copy_ast.c578 …ssertIntEquals(tc, ((struct cil_type_rule *)test_ast_node->data)->rule_kind, test_copy->rule_kind); in test_cil_copy_type_rule()
612 CuAssertIntEquals(tc, ((struct cil_avrule *)test_ast_node->data)->rule_kind, test_copy->rule_kind); in test_cil_copy_avrule()
Dtest_cil_build_ast.c74 test_avrule->rule_kind = CIL_AVRULE_ALLOWED; in test_cil_parse_to_list()
105 test_avrule->rule_kind = CIL_AVRULE_ALLOWED; in test_cil_parse_to_list_currnull_neg()
136 test_avrule->rule_kind = CIL_AVRULE_ALLOWED; in test_cil_parse_to_list_listnull_neg()
8495 …CuAssertIntEquals(tc, ((struct cil_type_rule*)test_ast_node->data)->rule_kind, CIL_TYPE_TRANSITION… in test_cil_gen_type_rule_transition()
8643 CuAssertIntEquals(tc, ((struct cil_type_rule*)test_ast_node->data)->rule_kind, CIL_TYPE_CHANGE); in test_cil_gen_type_rule_change()
8791 CuAssertIntEquals(tc, ((struct cil_type_rule*)test_ast_node->data)->rule_kind, CIL_TYPE_MEMBER); in test_cil_gen_type_rule_member()