ServiceReport/harden_servicereport.service.patch

23 lines
700 B
Diff

Index: ServiceReport-2.2.3/service/servicereport.service
===================================================================
--- ServiceReport-2.2.3.orig/service/servicereport.service
+++ ServiceReport-2.2.3/service/servicereport.service
@@ -3,6 +3,17 @@ Description=ServiceReport
Wants=kdump.service
[Service]
+# added automatically, for details please see
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+ProtectSystem=full
+ProtectHome=true
+PrivateDevices=true
+ProtectHostname=true
+ProtectClock=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
Type=oneshot
ExecStart=/usr/bin/servicereport -v