Skip to content

Commit 2b4c7af

Browse files
rgbriggspcmoore
authored andcommitted
audit: fixup: log on errors from filter user rules
In commit 724e4fc 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>
1 parent 2dcd0af commit 2b4c7af

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎kernel/auditfilter.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,8 +1339,8 @@ static int audit_filter_user_rules(struct audit_krule *rule, int type,
13391339
break;
13401340
}
13411341

1342-
if (!result)
1343-
return 0;
1342+
if (result <= 0)
1343+
return result;
13441344
}
13451345
switch (rule->action) {
13461346
case AUDIT_NEVER: *state = AUDIT_DISABLED; break;

0 commit comments

Comments
 (0)