Home
last modified time | relevance | path

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

/external/selinux/libsepol/cil/src/
Dcil_policy.c1162 switch (rule->rule_kind) { in cil_av_rulex_to_policy()
1195 switch (rule->rule_kind) { in cil_av_rule_to_policy()
1234 switch (rule->rule_kind) { in cil_type_rule_to_policy()
1301 uint32_t rule_kind; member
1326 if (args->rule_kind == rule->rule_kind) { in __cil_block_te_rules_to_policy_helper()
1338 if (args->rule_kind == rule->rule_kind) { in __cil_block_te_rules_to_policy_helper()
1374 args.rule_kind = 0; in cil_block_te_rules_to_policy()
1378 args.rule_kind = CIL_AVRULE_ALLOWED; in cil_block_te_rules_to_policy()
1380 args.rule_kind = CIL_AVRULE_AUDITALLOW; in cil_block_te_rules_to_policy()
1382 args.rule_kind = CIL_AVRULE_DONTAUDIT; in cil_block_te_rules_to_policy()
[all …]
Dcil_build_ast.h112 …en_avrule(struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, uint32_t rule_kind);
114 …n_avrulex(struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, uint32_t rule_kind);
117 …type_rule(struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, uint32_t rule_kind);
Dcil_write_ast.c748 switch (avrule->rule_kind) { in cil_write_avrule_x()
762 cil_log(CIL_ERR, "Unknown AVRULE type: %d\n", avrule->rule_kind); in cil_write_avrule_x()
794 switch (avrule->rule_kind) { in cil_write_avrule_orig()
808 cil_log(CIL_ERR, "Unknown AVRULE type: %d\n", avrule->rule_kind); in cil_write_avrule_orig()
842 switch (typerule->rule_kind) { in cil_write_type_rule()
853 cil_log(CIL_ERR, "Unknown TYPERULE type: %d\n", typerule->rule_kind); in cil_write_type_rule()
Dcil_find.c304 if (avrule->rule_kind != target->rule_kind) goto exit; in cil_find_matching_avrule()
Dcil_internal.h603 uint32_t rule_kind; member
632 uint32_t rule_kind; member
Dcil_binary.c1073 uint16_t kind = cil_rule->rule_kind; in __cil_type_rule_to_avtab()
1145 trans.rule_kind = CIL_TYPE_TRANSITION; in __cil_typetransition_to_avtab()
1424 uint16_t kind = cil_avrule->rule_kind; in __cil_avrule_to_avtab()
1432 if (cil_avrule->rule_kind == CIL_AVRULE_DONTAUDIT && db->disable_dontaudit == CIL_TRUE) { in __cil_avrule_to_avtab()
1802 if (cil_avrulex->rule_kind == CIL_AVRULE_DONTAUDIT && db->disable_dontaudit == CIL_TRUE) { in cil_avrulex_to_hashtable()
1808 kind = cil_avrulex->rule_kind; in cil_avrulex_to_hashtable()
3700 if (db->disable_neverallow != CIL_TRUE && rule->rule_kind == CIL_AVRULE_NEVERALLOW) { in __cil_node_to_policydb()
3755 if (rule->rule_kind != CIL_AVRULE_NEVERALLOW) { in __cil_node_to_policydb()
3762 if (rule->rule_kind != CIL_AVRULE_NEVERALLOW) { in __cil_node_to_policydb()
4523 target.rule_kind = CIL_AVRULE_ALLOWED; in __cil_print_neverallow_failure()
[all …]
Dcil.c1211 switch (((struct cil_avrule *)node->data)->rule_kind) { in cil_node_to_string()
1225 switch (((struct cil_avrule *)node->data)->rule_kind) { in cil_node_to_string()
1243 switch (((struct cil_type_rule *)node->data)->rule_kind) { in cil_node_to_string()
2360 (*avrule)->rule_kind = CIL_NONE; in cil_avrule_init()
2384 (*type_rule)->rule_kind = CIL_NONE; in cil_type_rule_init()
Dcil_copy_ast.c823 new->rule_kind = orig->rule_kind; in cil_copy_avrule()
872 new->rule_kind = orig->rule_kind; in cil_copy_type_rule()
Dcil_build_ast.c2023 …gen_avrule(struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, uint32_t rule_kind) in cil_gen_avrule() argument
2048 rule->rule_kind = rule_kind; in cil_gen_avrule()
2183 …en_avrulex(struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, uint32_t rule_kind) in cil_gen_avrulex() argument
2208 rule->rule_kind = rule_kind; in cil_gen_avrulex()
2234 …_type_rule(struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, uint32_t rule_kind) in cil_gen_type_rule() argument
2259 rule->rule_kind = rule_kind; in cil_gen_type_rule()
3382 rule->rule_kind = CIL_TYPE_TRANSITION; in cil_gen_typetransition()
Dcil_verify.c850 ckey.key4 = (intptr_t)typerule->rule_kind; in __cil_verify_rule()
885 if (avrule->rule_kind == CIL_AVRULE_NEVERALLOW) { in __cil_verify_booleanif_helper()
Dcil_tree.c1168 switch (rule->rule_kind) { in cil_tree_print_node()
1203 switch (rule->rule_kind) { in cil_tree_print_node()
Dcil_resolve_ast.c332 used = (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()