Home
last modified time | relevance | path

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

/external/selinux/libsepol/cil/src/
Dcil_policy.c1163 switch (rule->rule_kind) { in cil_av_rulex_to_policy()
1196 switch (rule->rule_kind) { in cil_av_rule_to_policy()
1235 switch (rule->rule_kind) { in cil_type_rule_to_policy()
1302 uint32_t rule_kind; member
1327 if (args->rule_kind == rule->rule_kind) { in __cil_block_te_rules_to_policy_helper()
1339 if (args->rule_kind == rule->rule_kind) { in __cil_block_te_rules_to_policy_helper()
1375 args.rule_kind = 0; in cil_block_te_rules_to_policy()
1379 args.rule_kind = CIL_AVRULE_ALLOWED; in cil_block_te_rules_to_policy()
1381 args.rule_kind = CIL_AVRULE_AUDITALLOW; in cil_block_te_rules_to_policy()
1383 args.rule_kind = CIL_AVRULE_DONTAUDIT; in cil_block_te_rules_to_policy()
[all …]
Dcil_write_ast.c1110 if (rule->rule_kind == AVRULE_ALLOWED) in cil_write_ast_node()
1112 else if (rule->rule_kind == AVRULE_AUDITALLOW) in cil_write_ast_node()
1114 else if (rule->rule_kind == AVRULE_DONTAUDIT) in cil_write_ast_node()
1116 else if (rule->rule_kind == AVRULE_NEVERALLOW) in cil_write_ast_node()
1129 if (rule->rule_kind == AVRULE_ALLOWED) in cil_write_ast_node()
1131 else if (rule->rule_kind == AVRULE_AUDITALLOW) in cil_write_ast_node()
1133 else if (rule->rule_kind == AVRULE_DONTAUDIT) in cil_write_ast_node()
1135 else if (rule->rule_kind == AVRULE_NEVERALLOW) in cil_write_ast_node()
1151 if (rule->rule_kind == AVRULE_TRANSITION) in cil_write_ast_node()
1153 else if (rule->rule_kind == AVRULE_MEMBER) in cil_write_ast_node()
[all …]
Dcil_build_ast.h114 …en_avrule(struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, uint32_t rule_kind);
116 …n_avrulex(struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, uint32_t rule_kind);
119 …type_rule(struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, uint32_t rule_kind);
Dcil_find.c305 if (avrule->rule_kind != target->rule_kind) goto exit; in cil_find_matching_avrule()
Dcil_internal.h611 uint32_t rule_kind; member
640 uint32_t rule_kind; member
Dcil_binary.c1084 pdb, cil_rule->rule_kind, sepol_src->s.value, in __cil_type_rule_to_avtab_helper()
1222 trans.rule_kind = CIL_TYPE_TRANSITION; in __cil_typetransition_to_avtab()
1490 uint16_t kind = cil_avrule->rule_kind; in __cil_avrule_to_avtab()
1498 if (cil_avrule->rule_kind == CIL_AVRULE_DONTAUDIT && db->disable_dontaudit == CIL_TRUE) { in __cil_avrule_to_avtab()
1860 if (cil_avrulex->rule_kind == CIL_AVRULE_DONTAUDIT && db->disable_dontaudit == CIL_TRUE) { in cil_avrulex_to_hashtable()
1866 kind = cil_avrulex->rule_kind; in cil_avrulex_to_hashtable()
3919 if (db->disable_neverallow != CIL_TRUE && rule->rule_kind == CIL_AVRULE_NEVERALLOW) { in __cil_node_to_policydb()
3974 if (rule->rule_kind != CIL_AVRULE_NEVERALLOW) { in __cil_node_to_policydb()
3981 if (rule->rule_kind != CIL_AVRULE_NEVERALLOW) { in __cil_node_to_policydb()
4744 target.rule_kind = CIL_AVRULE_ALLOWED; in __cil_print_neverallow_failure()
[all …]
Dcil.c1265 switch (((struct cil_avrule *)node->data)->rule_kind) { in cil_node_to_string()
1279 switch (((struct cil_avrule *)node->data)->rule_kind) { in cil_node_to_string()
1297 switch (((struct cil_type_rule *)node->data)->rule_kind) { in cil_node_to_string()
2453 (*avrule)->rule_kind = CIL_NONE; in cil_avrule_init()
2477 (*type_rule)->rule_kind = CIL_NONE; in cil_type_rule_init()
Dcil_copy_ast.c815 new->rule_kind = orig->rule_kind; in cil_copy_avrule()
864 new->rule_kind = orig->rule_kind; in cil_copy_type_rule()
Dcil_build_ast.c2081 …gen_avrule(struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, uint32_t rule_kind) in cil_gen_avrule() argument
2106 rule->rule_kind = rule_kind; in cil_gen_avrule()
2241 …en_avrulex(struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, uint32_t rule_kind) in cil_gen_avrulex() argument
2266 rule->rule_kind = rule_kind; in cil_gen_avrulex()
2292 …_type_rule(struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, uint32_t rule_kind) in cil_gen_type_rule() argument
2317 rule->rule_kind = rule_kind; in cil_gen_type_rule()
3383 rule->rule_kind = CIL_TYPE_TRANSITION; in cil_gen_typetransition()
Dandroid.c1033 if (rule->rule_kind != CIL_AVRULE_NEVERALLOW) { in apply_rules()
Dcil_verify.c1032 if (avrule->rule_kind == CIL_AVRULE_NEVERALLOW) { in __cil_verify_booleanif_helper()
Dcil_resolve_ast.c342 used = (rule->rule_kind == CIL_AVRULE_NEVERALLOW) ? in cil_resolve_avrule()
3963 if (rule->rule_kind == CIL_AVRULE_NEVERALLOW) { in __cil_resolve_ast_node_helper()
/external/tensorflow/tensorflow/lite/
Dbuild_def.bzl718 rule_kind = rule["kind"]
720 if rule_kind == "cc_library" and "allow_undefined_symbols" not in rule_tags:
/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()