kernel-6.7-xanmod/audit-make-it-less-verbose.patch

22 lines
759 B
Diff
Raw Normal View History

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
2020-10-18 13:15:39 +03:00
diff -Naur linux-5.9.orig/kernel/audit.c linux-5.9/kernel/audit.c
--- linux-5.9.orig/kernel/audit.c 2020-10-17 12:03:17.445125041 +0300
+++ linux-5.9/kernel/audit.c 2020-10-17 12:03:17.455125041 +0300
@@ -535,7 +535,7 @@
char *data = nlmsg_data(nlh);
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);
}
/**