1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
From: =?utf-8?q?Ferenc_W=C3=A1gner?= <wferi@debian.org>
Date: Mon, 10 Dec 2018 18:55:40 +0100
Subject: Enable PrivateTmp in the systemd service files
---
init/corosync-notifyd.service.in | 1 +
init/corosync.service.in | 1 +
2 files changed, 2 insertions(+)
diff --git a/init/corosync-notifyd.service.in b/init/corosync-notifyd.service.in
index 410a683..9247cbc 100644
--- a/init/corosync-notifyd.service.in
+++ b/init/corosync-notifyd.service.in
@@ -9,6 +9,7 @@ EnvironmentFile=-@INITCONFIGDIR@/corosync-notifyd
ExecStart=@SBINDIR@/corosync-notifyd -f $OPTIONS
Type=notify
Restart=on-failure
+PrivateTmp=yes
[Install]
WantedBy=multi-user.target
diff --git a/init/corosync.service.in b/init/corosync.service.in
index bd2a48a..f59bddb 100644
--- a/init/corosync.service.in
+++ b/init/corosync.service.in
@@ -29,6 +29,7 @@ StandardError=null
#RestartSec=70
# rewrite according to environment.
#ExecStartPre=/sbin/modprobe softdog
+PrivateTmp=yes
[Install]
WantedBy=multi-user.target
|