2019-12-11 21:21:05 +03:00
|
|
|
From bd9b98a36fb8afa9d3a3900817b340543215da6d Mon Sep 17 00:00:00 2001
|
|
|
|
From: Evgenii Shatokhin <eugene.shatokhin@rosalab.ru>
|
|
|
|
Date: Wed, 11 Dec 2019 21:10:42 +0300
|
|
|
|
Subject: [PATCH 1/4] audit: make it less verbose
|
|
|
|
|
2016-07-26 11:24:24 +03:00
|
|
|
It seems, if audit itself is not installed and therefore nothing listens
|
|
|
|
to the messages from the kernel's audit subsystem, the latter spams the
|
|
|
|
kernel log with such messages.
|
|
|
|
|
|
|
|
Let us make them debug-level and thus invisible by default.
|
|
|
|
|
|
|
|
http://bugs.rosalinux.ru/show_bug.cgi?id=6235
|
|
|
|
http://bugs.rosalinux.ru/show_bug.cgi?id=6459
|
2019-12-11 21:21:05 +03:00
|
|
|
---
|
|
|
|
kernel/audit.c | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
2016-07-26 11:24:24 +03:00
|
|
|
|
|
|
|
diff --git a/kernel/audit.c b/kernel/audit.c
|
2019-12-11 21:21:05 +03:00
|
|
|
index da8dc0db5bd3..b1d0cebb78dd 100644
|
2016-07-26 11:24:24 +03:00
|
|
|
--- a/kernel/audit.c
|
|
|
|
+++ b/kernel/audit.c
|
2019-12-11 21:21:05 +03:00
|
|
|
@@ -529,7 +529,7 @@ static void kauditd_printk_skb(struct sk_buff *skb)
|
2017-04-02 17:44:19 +03:00
|
|
|
char *data = nlmsg_data(nlh);
|
2016-07-26 11:24:24 +03:00
|
|
|
|
2017-04-02 17:44:19 +03:00
|
|
|
if (nlh->nlmsg_type != AUDIT_EOE && printk_ratelimit())
|
|
|
|
- pr_notice("type=%d %s\n", nlh->nlmsg_type, data);
|
|
|
|
+ pr_debug("type=%d %s\n", nlh->nlmsg_type, data);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-12-11 21:21:05 +03:00
|
|
|
--
|
|
|
|
2.20.1
|
|
|
|
|