parkverbot/harden_parkverbot.service.patch

23 lines
735 B
Diff

Index: parkverbot-1.3/src/parkverbot.service
===================================================================
--- parkverbot-1.3.orig/src/parkverbot.service
+++ parkverbot-1.3/src/parkverbot.service
@@ -2,6 +2,17 @@
Description=Hard disk head parking inhibitor
[Service]
+# added automatically, for details please see
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+ProtectSystem=full
+ProtectHome=true
+ProtectHostname=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
+# end of automatic additions
EnvironmentFile=/etc/sysconfig/parkverbot
ExecStart=/usr/sbin/parkverbot $PARKVERBOT_DISKS
Restart=on-abort