Lines Matching refs:cil_rule

986 …_t src, uint32_t tgt, uint32_t obj, uint32_t res, struct cil_type_rule *cil_rule, cond_node_t *con…  in __cil_insert_type_rule()  argument
1021 …ext=%s tcontext=%s tclass=%s result=%s)\n", cil_rule->src_str, cil_rule->tgt_str, cil_rule->obj_st… in __cil_insert_type_rule()
1047 …ext=%s tcontext=%s tclass=%s result=%s)\n", cil_rule->src_str, cil_rule->tgt_str, cil_rule->obj_st… in __cil_insert_type_rule()
1065 …o_avtab(policydb_t *pdb, const struct cil_db *db, struct cil_type_rule *cil_rule, cond_node_t *con… in __cil_type_rule_to_avtab() argument
1068 uint16_t kind = cil_rule->rule_kind; in __cil_type_rule_to_avtab()
1079 rc = __cil_expand_type(cil_rule->src, &src_bitmap); in __cil_type_rule_to_avtab()
1082 rc = __cil_expand_type(cil_rule->tgt, &tgt_bitmap); in __cil_type_rule_to_avtab()
1085 class_list = cil_expand_class(cil_rule->obj); in __cil_type_rule_to_avtab()
1087 rc = __cil_get_sepol_type_datum(pdb, DATUM(cil_rule->result), &sepol_result); in __cil_type_rule_to_avtab()
1106 …s.value, sepol_tgt->s.value, sepol_obj->s.value, sepol_result->s.value, cil_rule, cond_node, cond_… in __cil_type_rule_to_avtab()
1121 …cil_type_rule_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_type_rule *cil_rule) in cil_type_rule_to_policydb() argument
1123 return __cil_type_rule_to_avtab(pdb, db, cil_rule, NULL, CIL_FALSE); in cil_type_rule_to_policydb()
4532 struct cil_avrule *cil_rule = node->data; in __cil_print_neverallow_failure() local
4541 target.is_extended = cil_rule->is_extended; in __cil_print_neverallow_failure()
4542 target.src = cil_rule->src; in __cil_print_neverallow_failure()
4543 target.tgt = cil_rule->tgt; in __cil_print_neverallow_failure()
4544 target.perms = cil_rule->perms; in __cil_print_neverallow_failure()
4546 if (!cil_rule->is_extended) { in __cil_print_neverallow_failure()
4556 __cil_print_rule(" ", neverallow_str, cil_rule); in __cil_print_neverallow_failure()
4581 struct cil_avrule *cil_rule = node->data; in cil_check_neverallow() local
4582 struct cil_symtab_datum *tgt = cil_rule->tgt; in cil_check_neverallow()
4588 if (!cil_rule->is_extended) { in cil_check_neverallow()
4597 rc = __cil_add_sepol_type(pdb, db, cil_rule->src, &rule->stypes.types); in cil_check_neverallow()
4605 rc = __cil_add_sepol_type(pdb, db, cil_rule->tgt, &rule->ttypes.types); in cil_check_neverallow()
4611 if (!cil_rule->is_extended) { in cil_check_neverallow()
4612 rc = __cil_rule_to_sepol_class_perms(pdb, cil_rule->perms.classperms, &rule->perms); in cil_check_neverallow()
4627 rc = __cil_permx_to_sepol_class_perms(pdb, cil_rule->perms.x.permx, &rule->perms); in cil_check_neverallow()
4632 rc = __cil_permx_bitmap_to_sepol_xperms_list(cil_rule->perms.x.permx->perms, &xperms); in cil_check_neverallow()
4712 …_from_sepol(policydb_t *pdb, avtab_ptr_t sepol_rule, struct cil_avrule *cil_rule, void *type_value… in cil_avrule_from_sepol() argument
4717 cil_rule->src = type_value_to_cil[k->source_type]; in cil_avrule_from_sepol()
4718 if (!cil_rule->src) goto exit; in cil_avrule_from_sepol()
4720 cil_rule->tgt = type_value_to_cil[k->target_type]; in cil_avrule_from_sepol()
4721 if (!cil_rule->tgt) goto exit; in cil_avrule_from_sepol()
4723cil_rule->perms.classperms = cil_classperms_from_sepol(pdb, k->target_class, d->data, class_value_… in cil_avrule_from_sepol()
4724 if (!cil_rule->perms.classperms) goto exit; in cil_avrule_from_sepol()