From 844f84fde69d25b6235d164587a0478865ff531e Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Sat, 27 Aug 2005 10:25:43 +0100 Subject: [PATCH] --- yaml --- r: 8893 b: refs/heads/master c: b01f2cc1c37ac3d5ca313c90370a586dffe5aca9 h: refs/heads/master i: 8891: 1b34751fb1df788663e894aa2ae7e8d46433cdb0 v: v3 --- [refs] | 2 +- trunk/kernel/auditsc.c | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 9dd7875a6951..9025930b3521 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 17888225c2f392bfdbac6c7f0713cbd9a4d02b05 +refs/heads/master: b01f2cc1c37ac3d5ca313c90370a586dffe5aca9 diff --git a/trunk/kernel/auditsc.c b/trunk/kernel/auditsc.c index 488ba3dea8bb..88696f639aab 100644 --- a/trunk/kernel/auditsc.c +++ b/trunk/kernel/auditsc.c @@ -440,8 +440,12 @@ static int audit_filter_rules(struct task_struct *tsk, result = (ctx->return_code == value); break; case AUDIT_SUCCESS: - if (ctx && ctx->return_valid) - result = (ctx->return_valid == AUDITSC_SUCCESS); + if (ctx && ctx->return_valid) { + if (value) + result = (ctx->return_valid == AUDITSC_SUCCESS); + else + result = (ctx->return_valid == AUDITSC_FAILURE); + } break; case AUDIT_DEVMAJOR: if (ctx) {