Automatic systemd hardening effort by the security team. This has not been tested. For details please see https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort OBS-URL: https://build.opensuse.org/request/show/925353 OBS-URL: https://build.opensuse.org/package/show/utilities/parkverbot?expand=0&rev=22
23 lines
735 B
Diff
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
|