summaryrefslogtreecommitdiff
path: root/units/systemd-journald-audit.socket
diff options
context:
space:
mode:
authorFranck Bui <fbui@suse.com>2022-12-06 20:15:43 +0100
committerLennart Poettering <lennart@poettering.net>2023-01-11 17:18:57 +0100
commit2aba77057e55a1082296c10f61e19d8c5e1eb1f7 (patch)
treec5442e5aaeff446daa3d6635b35312e392590b13 /units/systemd-journald-audit.socket
parent8112c91e484ea1a0ba0277f60a5069dd45a3b4b1 (diff)
downloadsystemd-2aba77057e55a1082296c10f61e19d8c5e1eb1f7.tar.gz
journal: give the ability to enable/disable systemd-journald-audit.socket
Before this patch the only way to prevent journald from reading the audit messages was to mask systemd-journald-audit.socket. However this had main drawback that downstream couldn't ship the socket disabled by default (beside the fact that masking units is not supposed to be the usual way to disable them). Fixes #15777
Diffstat (limited to 'units/systemd-journald-audit.socket')
-rw-r--r--units/systemd-journald-audit.socket4
1 files changed, 4 insertions, 0 deletions
diff --git a/units/systemd-journald-audit.socket b/units/systemd-journald-audit.socket
index f0c0aebc86..cf9b6e8b84 100644
--- a/units/systemd-journald-audit.socket
+++ b/units/systemd-journald-audit.socket
@@ -20,3 +20,7 @@ Service=systemd-journald.service
ReceiveBuffer=128M
ListenNetlink=audit 1
PassCredentials=yes
+
+[Install]
+WantedBy=sockets.target
+WantedBy=systemd-journald.service