aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorAmy Griffis <amy.griffis@hp.com>2006-08-01 17:52:26 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2006-08-03 10:54:43 -0400
commit5422e01ac16df7398b2bad1eccad0ae3be4dee32 (patch)
treeadb7941adc3125155874859b93b4d7720ce8db48 /kernel
parent6988434ee5f532c71be3131fba23283f5cf43847 (diff)
downloadkernel_samsung_espresso10-5422e01ac16df7398b2bad1eccad0ae3be4dee32.zip
kernel_samsung_espresso10-5422e01ac16df7398b2bad1eccad0ae3be4dee32.tar.gz
kernel_samsung_espresso10-5422e01ac16df7398b2bad1eccad0ae3be4dee32.tar.bz2
[PATCH] fix audit oops with invalid operator
Michael C Thompson wrote: [Tue Aug 01 2006, 02:36:36PM EDT] > The trigger for this oops is: > # auditctl -a exit,always -S pread64 -F 'inode<1' Setting the err value will fix it. Signed-off-by: Amy Griffis <amy.griffis@hp.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/auditfilter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c
index 5b4e162..32420f9 100644
--- a/kernel/auditfilter.c
+++ b/kernel/auditfilter.c
@@ -442,6 +442,7 @@ static struct audit_entry *audit_rule_to_entry(struct audit_rule *rule)
case AUDIT_EQUAL:
break;
default:
+ err = -EINVAL;
goto exit_free;
}
}
@@ -579,6 +580,7 @@ static struct audit_entry *audit_data_to_entry(struct audit_rule_data *data,
case AUDIT_EQUAL:
break;
default:
+ err = -EINVAL;
goto exit_free;
}
}