On Mon, 2005-06-20 at 10:52 +0100, David Woodhouse wrote:
* Mon Jun 20 2005 David Woodhouse <dwmw2(a)redhat.com> audit.62
- Fix locking in auditfs_attach_wdata()
- Drop user messages if !audit_enabled
Sorry, I've put a few patches in without also sending them to the
list...
--- linux-2.6.9/kernel/audit.c~ 2005-06-17 16:47:40.000000000 +0100
+++ linux-2.6.9/kernel/audit.c 2005-06-20 00:14:14.000000000 +0100
@@ -446,7 +446,7 @@ static int audit_receive_msg(struct sk_b
if (!tsk)
return -ESRCH;
- if (audit_filter_user(tsk, msg_type)) {
+ if (audit_enabled && audit_filter_user(tsk, msg_type)) {
ab = audit_log_start(NULL, msg_type);
if (ab) {
audit_log_format(ab,
--
dwmw2