From: Richard Guy Briggs Date: Mon, 16 May 2016 02:47:39 +0000 (-0400) Subject: audit: fixup: log on errors from filter user rules X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2b4c7afe79a8a0a0e05edeaded5653c190153f9b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Paul Moore --- diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c index 94ca7b1e5e7e..8a8aa3fbc8d8 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;