2022-04-26 00:00:02 +02:00
|
|
|
diff --git a/scripts/telegraf.service b/scripts/telegraf.service
|
|
|
|
index c4eed38e..288dd806 100644
|
|
|
|
--- a/scripts/telegraf.service
|
|
|
|
+++ b/scripts/telegraf.service
|
|
|
|
@@ -4,6 +4,19 @@ Documentation=https://github.com/influxdata/telegraf
|
2021-11-24 20:11:29 +01:00
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
+# added automatically, for details please see
|
|
|
|
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
|
|
+ProtectSystem=full
|
|
|
|
+ProtectHome=true
|
|
|
|
+PrivateDevices=true
|
|
|
|
+ProtectHostname=true
|
|
|
|
+ProtectClock=true
|
|
|
|
+ProtectKernelTunables=true
|
|
|
|
+ProtectKernelModules=true
|
|
|
|
+ProtectKernelLogs=true
|
|
|
|
+ProtectControlGroups=true
|
|
|
|
+RestrictRealtime=true
|
2022-04-26 00:00:02 +02:00
|
|
|
+# end of automatic additions
|
|
|
|
Type=notify
|
2021-11-24 20:11:29 +01:00
|
|
|
EnvironmentFile=-/etc/default/telegraf
|
|
|
|
User=telegraf
|