Don't enable audit by default
authorMartin Pitt <martin.pitt@ubuntu.com>
Sun, 28 Dec 2014 11:49:35 +0000 (12:49 +0100)
committerMichael Biebl <biebl@debian.org>
Sat, 24 Oct 2020 18:44:48 +0000 (19: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

src/journal/journald-audit.c

index accbad418047c1d5f1e21ea56b3159e67f8542a5..e62b1ee9be01d8b1b5cf4abf0fe95b7108a1da12 100644 (file)
@@ -536,10 +536,5 @@ int server_open_audit(Server *s) {
         if (r < 0)
                 return log_error_errno(r, "Failed to add audit fd to event loop: %m");
 
-        /* We are listening now, try to enable audit */
-        r = enable_audit(s->audit_fd, true);
-        if (r < 0)
-                log_warning_errno(r, "Failed to issue audit enable call: %m");
-
         return 0;
 }