aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2014-10-10 15:05:21 -0400
committerEric Paris <eparis@redhat.com>2014-10-10 15:07:42 -0400
commit739c95038e68d364b01c0fc6f8fb8e47b1c1e979 (patch)
treee8f4bfada2461b4a3cf3a2ad7c651bffd0a3aeba /kernel
parent3639f17068ed40e4e208a6e218481d49817bbd56 (diff)
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.c3
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,
1085 audit_free_rule(entry); 1085 audit_free_rule(entry);
1086 break; 1086 break;
1087 default: 1087 default:
1088 return -EINVAL; 1088 err = -EINVAL;
1089 WARN_ON(1);
1089 } 1090 }
1090 1091
1091 return err; 1092 return err;