File harden_lm_sensors.service.patch of Package sensors

Index: lm-sensors-3-6-0/prog/init/lm_sensors.service
===================================================================
--- lm-sensors-3-6-0.orig/prog/init/lm_sensors.service
+++ lm-sensors-3-6-0/prog/init/lm_sensors.service
@@ -2,6 +2,15 @@
 Description=Initialize hardware monitoring sensors
 
 [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 
 EnvironmentFile=/etc/sysconfig/lm_sensors
 Type=oneshot
 RemainAfterExit=yes
openSUSE Build Service is sponsored by