Lines Matching defs:rule
1003 /* Don't add duplicate type rule and warn if they conflict.
1005 * non-duplicate rule using the same key.
1014 cil_log(CIL_ERR, "Expanded from type rule (scontext=%s tcontext=%s tclass=%s result=%s)\n",
1047 cil_log(CIL_ERR, "Expanded from type rule (scontext=%s tcontext=%s tclass=%s result=%s)\n",
1406 /* No permissions, so don't insert rule. Maybe should return an error? */
2909 /* No permissions, so don't insert rule. */
3918 struct cil_avrule *rule = node->data;
3919 if (db->disable_neverallow != CIL_TRUE && rule->rule_kind == CIL_AVRULE_NEVERALLOW) {
3973 struct cil_avrule *rule = node->data;
3974 if (rule->rule_kind != CIL_AVRULE_NEVERALLOW) {
3980 struct cil_avrule *rule = node->data;
3981 if (rule->rule_kind != CIL_AVRULE_NEVERALLOW) {
4796 avrule_t *rule;
4806 rule = __cil_init_sepol_avrule(kind, node);
4807 rule->next = NULL;
4809 rc = __cil_add_sepol_type(pdb, db, cil_rule->src, &rule->stypes.types);
4815 rule->flags = RULE_SELF;
4817 rc = __cil_add_sepol_type(pdb, db, cil_rule->tgt, &rule->ttypes.types);
4824 rc = __cil_rule_to_sepol_class_perms(pdb, cil_rule->perms.classperms, &rule->perms);
4829 rc = check_assertion(pdb, rule);
4839 rc = __cil_permx_to_sepol_class_perms(pdb, cil_rule->perms.x.permx, &rule->perms);
4850 rule->xperms = item->data;
4851 rc = check_assertion(pdb, rule);
4871 rule->xperms = NULL;
4872 __cil_destroy_sepol_avrules(rule);
4942 cil_log(CIL_ERR,"Failed to create CIL AV rule from sepol values\n");