diff options
author | Eric Paris <eparis@redhat.com> | 2014-10-10 21:05:21 +0200 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2014-10-10 21:07:42 +0200 |
commit | 739c95038e68d364b01c0fc6f8fb8e47b1c1e979 (patch) | |
tree | e8f4bfada2461b4a3cf3a2ad7c651bffd0a3aeba /kernel | |
parent | audit: put rule existence check in canonical order (diff) | |
download | linux-739c95038e68d364b01c0fc6f8fb8e47b1c1e979.tar.xz linux-739c95038e68d364b01c0fc6f8fb8e47b1c1e979.zip |
audit: WARN if audit_rule_change called illegally
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/auditfilter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c index 4a11697cf5b8..4419d1fbcad1 100644 --- a/kernel/auditfilter.c +++ b/kernel/auditfilter.c @@ -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; |