File harden_ntplogtemp.service.patch of Package ntpsec
Index: ntpsec-1.2.1/etc/ntplogtemp.service
===================================================================
--- ntpsec-1.2.1.orig/etc/ntplogtemp.service
+++ ntpsec-1.2.1/etc/ntplogtemp.service
@@ -3,5 +3,15 @@ Documentation=man:ntplogtemp(1)
Description=Temperature information logger for ntpviz
[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
+# end of automatic additions
Type=simple
ExecStart=@BINDIR@/ntplogtemp -o -l /var/log/ntpstats/temps