projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1788822
)
[AUDIT] Allow filtering on system call success _or_ failure
author
David Woodhouse
<dwmw2@shinybook.infradead.org>
Sat, 27 Aug 2005 09:25:43 +0000
(10:25 +0100)
committer
David Woodhouse
<dwmw2@shinybook.infradead.org>
Sat, 27 Aug 2005 09:25:43 +0000
(10:25 +0100)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
kernel/auditsc.c
patch
|
blob
|
history
diff --git
a/kernel/auditsc.c
b/kernel/auditsc.c
index
488ba3d
..
88696f6
100644
(file)
--- a/
kernel/auditsc.c
+++ b/
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) {