|
|
a3e2b5 |
From 7b87977aaa9017c7307cc0645c019b9abd4654d6 Mon Sep 17 00:00:00 2001
|
|
|
a3e2b5 |
From: Jan Synacek <jsynacek@redhat.com>
|
|
|
a3e2b5 |
Date: Thu, 2 May 2019 14:08:39 +0200
|
|
|
a3e2b5 |
Subject: [PATCH] Revert "journal: remove journal audit socket"
|
|
|
a3e2b5 |
|
|
|
a3e2b5 |
This reverts commit 8618ef2fb30b4139c9bec4e45fb499cd8192a87f.
|
|
|
a3e2b5 |
|
|
|
a3e2b5 |
Resolves: #1699287
|
|
|
a3e2b5 |
---
|
|
|
a3e2b5 |
units/meson.build | 2 ++
|
|
|
a3e2b5 |
units/systemd-journald-audit.socket | 22 ++++++++++++++++++++++
|
|
|
a3e2b5 |
units/systemd-journald.service.in | 4 ++--
|
|
|
a3e2b5 |
3 files changed, 26 insertions(+), 2 deletions(-)
|
|
|
a3e2b5 |
create mode 100644 units/systemd-journald-audit.socket
|
|
|
a3e2b5 |
|
|
|
a3e2b5 |
diff --git a/units/meson.build b/units/meson.build
|
|
|
a3e2b5 |
index e54a84ccbf..e4ac6ced64 100644
|
|
|
a3e2b5 |
--- a/units/meson.build
|
|
|
a3e2b5 |
+++ b/units/meson.build
|
|
|
a3e2b5 |
@@ -89,6 +89,8 @@ units = [
|
|
|
a3e2b5 |
'sockets.target.wants/'],
|
|
|
a3e2b5 |
['systemd-journal-gatewayd.socket', 'ENABLE_REMOTE HAVE_MICROHTTPD'],
|
|
|
a3e2b5 |
['systemd-journal-remote.socket', 'ENABLE_REMOTE HAVE_MICROHTTPD'],
|
|
|
a3e2b5 |
+ ['systemd-journald-audit.socket', '',
|
|
|
a3e2b5 |
+ 'sockets.target.wants/'],
|
|
|
a3e2b5 |
['systemd-journald-dev-log.socket', '',
|
|
|
a3e2b5 |
'sockets.target.wants/'],
|
|
|
a3e2b5 |
['systemd-journald.socket', '',
|
|
|
a3e2b5 |
diff --git a/units/systemd-journald-audit.socket b/units/systemd-journald-audit.socket
|
|
|
a3e2b5 |
new file mode 100644
|
|
|
a3e2b5 |
index 0000000000..cb8b774963
|
|
|
a3e2b5 |
--- /dev/null
|
|
|
a3e2b5 |
+++ b/units/systemd-journald-audit.socket
|
|
|
a3e2b5 |
@@ -0,0 +1,22 @@
|
|
|
a3e2b5 |
+# SPDX-License-Identifier: LGPL-2.1+
|
|
|
a3e2b5 |
+#
|
|
|
a3e2b5 |
+# This file is part of systemd.
|
|
|
a3e2b5 |
+#
|
|
|
a3e2b5 |
+# systemd is free software; you can redistribute it and/or modify it
|
|
|
a3e2b5 |
+# under the terms of the GNU Lesser General Public License as published by
|
|
|
a3e2b5 |
+# the Free Software Foundation; either version 2.1 of the License, or
|
|
|
a3e2b5 |
+# (at your option) any later version.
|
|
|
a3e2b5 |
+
|
|
|
a3e2b5 |
+[Unit]
|
|
|
a3e2b5 |
+Description=Journal Audit Socket
|
|
|
a3e2b5 |
+Documentation=man:systemd-journald.service(8) man:journald.conf(5)
|
|
|
a3e2b5 |
+DefaultDependencies=no
|
|
|
a3e2b5 |
+Before=sockets.target
|
|
|
a3e2b5 |
+ConditionSecurity=audit
|
|
|
a3e2b5 |
+ConditionCapability=CAP_AUDIT_READ
|
|
|
a3e2b5 |
+
|
|
|
a3e2b5 |
+[Socket]
|
|
|
a3e2b5 |
+Service=systemd-journald.service
|
|
|
a3e2b5 |
+ReceiveBuffer=128M
|
|
|
a3e2b5 |
+ListenNetlink=audit 1
|
|
|
a3e2b5 |
+PassCredentials=yes
|
|
|
a3e2b5 |
diff --git a/units/systemd-journald.service.in b/units/systemd-journald.service.in
|
|
|
a3e2b5 |
index 2d5fd0120d..4eab2fa841 100644
|
|
|
a3e2b5 |
--- a/units/systemd-journald.service.in
|
|
|
a3e2b5 |
+++ b/units/systemd-journald.service.in
|
|
|
a3e2b5 |
@@ -12,12 +12,12 @@ Description=Journal Service
|
|
|
a3e2b5 |
Documentation=man:systemd-journald.service(8) man:journald.conf(5)
|
|
|
a3e2b5 |
DefaultDependencies=no
|
|
|
a3e2b5 |
Requires=systemd-journald.socket
|
|
|
a3e2b5 |
-After=systemd-journald.socket systemd-journald-dev-log.socket syslog.socket
|
|
|
a3e2b5 |
+After=systemd-journald.socket systemd-journald-dev-log.socket systemd-journald-audit.socket syslog.socket
|
|
|
a3e2b5 |
Before=sysinit.target
|
|
|
a3e2b5 |
|
|
|
a3e2b5 |
[Service]
|
|
|
a3e2b5 |
Type=notify
|
|
|
a3e2b5 |
-Sockets=systemd-journald.socket systemd-journald-dev-log.socket
|
|
|
a3e2b5 |
+Sockets=systemd-journald.socket systemd-journald-dev-log.socket systemd-journald-audit.socket
|
|
|
a3e2b5 |
ExecStart=@rootlibexecdir@/systemd-journald
|
|
|
a3e2b5 |
Restart=always
|
|
|
a3e2b5 |
RestartSec=0
|