Don't enable audit by default
authorMartin Pitt <martin.pitt@ubuntu.com>
Sun, 28 Dec 2014 11:49:35 +0000 (12:49 +0100)
committerLuca Boccassi <bluca@debian.org>
Sun, 16 Jun 2024 09:44:31 +0000 (10:44 +0100)
It causes flooding of dmesg and syslog, suppressing actually important
messages.

Don't enable it for now, until a better solution is found:
http://lists.freedesktop.org/archives/systemd-devel/2014-December/026591.html

Bug-Debian: https://bugs.debian.org/773528

Gbp-Pq: Topic debian
Gbp-Pq: Name Don-t-enable-audit-by-default.patch

man/journald.conf.xml
src/journal/journald-server.c
src/journal/journald.conf

index 160544a0255710b9a689d13e253b311b1a75e3c0..7e6f175fbdb3f13ab15910da9d31abbf88d16abf 100644 (file)
         <command>systemd-journald</command> collects generated audit records, it just controls whether it
         tells the kernel to generate them. This means if another tool turns on auditing even if
         <command>systemd-journald</command> left it off, it will still collect the generated
-        messages. Defaults to on.</para></listitem>
+        messages. Defaults to off.</para></listitem>
       </varlistentry>
 
       <varlistentry>
index 863575c5962314308810dd29307dc94c9ae8083d..1b9b8e1bd53f63508410cec9f64e17e046f51b63 100644 (file)
@@ -2279,7 +2279,7 @@ int server_init(Server *s, const char *namespace) {
                 .compress.threshold_bytes = UINT64_MAX,
                 .seal = true,
 
-                .set_audit = true,
+                .set_audit = false,
 
                 .watchdog_usec = USEC_INFINITY,
 
index 64f4d4bee1560209bd57fc51fa90579256793a81..a690681dd09df4c80fb0bafcafd9664068c73a2a 100644 (file)
@@ -44,4 +44,4 @@
 #MaxLevelWall=emerg
 #LineMax=48K
 #ReadKMsg=yes
-#Audit=yes
+#Audit=no