sensors/harden_fancontrol.service.patch

21 lines
685 B
Diff

Index: lm-sensors-3-6-0/prog/init/fancontrol.service
===================================================================
--- lm-sensors-3-6-0.orig/prog/init/fancontrol.service
+++ lm-sensors-3-6-0/prog/init/fancontrol.service
@@ -4,6 +4,15 @@ ConditionFileNotEmpty=/etc/fancontrol
After=lm_sensors.service
[Service]
+# added automatically, for details please see
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+ProtectSystem=full
+ProtectHome=true
+ProtectHostname=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
+# end of automatic additions
Type=simple
PIDFile=/run/fancontrol.pid
ExecStart=/usr/sbin/fancontrol