aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
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 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,
1339 break; 1339 break;
1340 } 1340 }
1341 1341
1342 if (!result) 1342 if (result <= 0)
1343 return 0; 1343 return result;
1344 } 1344 }
1345 switch (rule->action) { 1345 switch (rule->action) {
1346 case AUDIT_NEVER: *state = AUDIT_DISABLED; break; 1346 case AUDIT_NEVER: *state = AUDIT_DISABLED; break;