Skip to contentSkip to conversation

mcstrans: harden systemd service file

PATCH In review Johannes Segitz 2 participants 3 messages Jul 29 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mcstrans: harden systemd service file

Start to harden the systemd services file with some of the unproblematic options.

---
 mcstrans/src/mcstrans.service | 7 +++++++
 1 file changed, 7 insertions(+)
mcstrans/src/mcstrans.service +7 -0
index fdcfb0d4..114c802f 100644
@@ -7,6 +7,13 @@ Before=shutdown.target sysinit.target
 Conflicts=shutdown.target
 
 [Service]
+ProtectHostname=true
+ProtectClock=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
 ExecStart=/sbin/mcstransd -f
 RuntimeDirectory=setrans
 RuntimeDirectoryPreserve=true
Signature · 1 line
2.55.0
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Johannes Segitz

Start to harden the systemd services file with some of the unproblematic options.

Quoted 26 lines
---
 mcstrans/src/mcstrans.service | 7 +++++++
 1 file changed, 7 insertions(+)
mcstrans/src/mcstrans.service +7 -1
index fdcfb0d4..114c802f 100644
@@ -7,6 +7,13 @@ Before=shutdown.target sysinit.target
 Conflicts=shutdown.target
 
 [Service]
+ProtectHostname=true
+ProtectClock=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
 ExecStart=/sbin/mcstransd -f
 RuntimeDirectory=setrans
 RuntimeDirectoryPreserve=true
--

2.55.0