Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8893
b: refs/heads/master
c: b01f2cc
h: refs/heads/master
i:
  8891: 1b34751
v: v3
  • Loading branch information
David Woodhouse committed Aug 27, 2005
1 parent 17159cb commit 844f84f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 17888225c2f392bfdbac6c7f0713cbd9a4d02b05
refs/heads/master: b01f2cc1c37ac3d5ca313c90370a586dffe5aca9
8 changes: 6 additions & 2 deletions trunk/kernel/auditsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 844f84f

Please sign in to comment.