Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 739c9503 authored by Eric Paris's avatar Eric Paris
Browse files

audit: WARN if audit_rule_change called illegally



Signed-off-by: default avatarEric Paris <eparis@redhat.com>
parent 3639f170
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1085,7 +1085,8 @@ int audit_rule_change(int type, __u32 portid, int seq, void *data,
		audit_free_rule(entry);
		break;
	default:
		return -EINVAL;
		err = -EINVAL;
		WARN_ON(1);
	}

	return err;