Lines Matching refs:cil_rule
1055 …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
1058 uint16_t kind = cil_rule->rule_kind; in __cil_type_rule_to_avtab()
1069 rc = __cil_expand_type(cil_rule->src, &src_bitmap); in __cil_type_rule_to_avtab()
1072 rc = __cil_expand_type(cil_rule->tgt, &tgt_bitmap); in __cil_type_rule_to_avtab()
1075 class_list = cil_expand_class(cil_rule->obj); in __cil_type_rule_to_avtab()
1077 rc = __cil_get_sepol_type_datum(pdb, DATUM(cil_rule->result), &sepol_result); in __cil_type_rule_to_avtab()
1111 …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
1113 return __cil_type_rule_to_avtab(pdb, db, cil_rule, NULL, CIL_FALSE); in cil_type_rule_to_policydb()
4337 struct cil_avrule *cil_rule = node->data; in __cil_print_neverallow_failure() local
4346 target.is_extended = cil_rule->is_extended; in __cil_print_neverallow_failure()
4347 target.src = cil_rule->src; in __cil_print_neverallow_failure()
4348 target.tgt = cil_rule->tgt; in __cil_print_neverallow_failure()
4349 target.perms = cil_rule->perms; in __cil_print_neverallow_failure()
4351 if (!cil_rule->is_extended) { in __cil_print_neverallow_failure()
4361 __cil_print_rule(" ", neverallow_str, cil_rule); in __cil_print_neverallow_failure()
4387 struct cil_avrule *cil_rule = node->data; in cil_check_neverallow() local
4388 struct cil_symtab_datum *tgt = cil_rule->tgt; in cil_check_neverallow()
4394 if (!cil_rule->is_extended) { in cil_check_neverallow()
4403 rc = __cil_add_sepol_type(pdb, db, cil_rule->src, &rule->stypes.types); in cil_check_neverallow()
4411 rc = __cil_add_sepol_type(pdb, db, cil_rule->tgt, &rule->ttypes.types); in cil_check_neverallow()
4417 if (!cil_rule->is_extended) { in cil_check_neverallow()
4418 rc = __cil_rule_to_sepol_class_perms(pdb, cil_rule->perms.classperms, &rule->perms); in cil_check_neverallow()
4433 rc = __cil_permx_to_sepol_class_perms(pdb, cil_rule->perms.x.permx, &rule->perms); in cil_check_neverallow()
4438 rc = __cil_permx_bitmap_to_sepol_xperms_list(cil_rule->perms.x.permx->perms, &xperms); in cil_check_neverallow()
4530 …_from_sepol(policydb_t *pdb, avtab_ptr_t sepol_rule, struct cil_avrule *cil_rule, void *type_value… in cil_avrule_from_sepol() argument
4535 cil_rule->src = type_value_to_cil[k->source_type]; in cil_avrule_from_sepol()
4536 if (!cil_rule->src) goto exit; in cil_avrule_from_sepol()
4538 cil_rule->tgt = type_value_to_cil[k->target_type]; in cil_avrule_from_sepol()
4539 if (!cil_rule->tgt) goto exit; in cil_avrule_from_sepol()
4541 …cil_rule->perms.classperms = cil_classperms_from_sepol(pdb, k->target_class, d->data, class_value_… in cil_avrule_from_sepol()
4542 if (!cil_rule->perms.classperms) goto exit; in cil_avrule_from_sepol()