summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorRichard Guy Briggs <rgb@redhat.com>2016-05-15 22:47:39 -0400
committerPaul Moore <paul@paul-moore.com>2016-05-31 12:06:59 -0400
commit2b4c7afe79a8a0a0e05edeaded5653c190153f9b (patch)
tree2c43f715659320e1a918a5533ec26abd973479a1 /kernel
parent2dcd0af568b0cf583645c8a317dd12e344b1c72a (diff)
downloadop-kernel-dev-2b4c7afe79a8a0a0e05edeaded5653c190153f9b.zip
op-kernel-dev-2b4c7afe79a8a0a0e05edeaded5653c190153f9b.tar.gz
audit: fixup: log on errors from filter user rules
In commit 724e4fcc the intention was to pass any errors back from audit_filter_user_rules() to audit_filter_user(). Add that code. Signed-off-by: Richard Guy Briggs <rgb@redhat.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/auditfilter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c
index 94ca7b1..8a8aa3fb 100644
--- a/kernel/auditfilter.c
+++ b/kernel/auditfilter.c
@@ -1339,8 +1339,8 @@ static int audit_filter_user_rules(struct audit_krule *rule, int type,
break;
}
- if (!result)
- return 0;
+ if (result <= 0)
+ return result;
}
switch (rule->action) {
case AUDIT_NEVER: *state = AUDIT_DISABLED; break;
OpenPOWER on IntegriCloud