forked from pool/telegraf
563627e54d
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/933468 OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/telegraf?expand=0&rev=35
25 lines
868 B
Diff
25 lines
868 B
Diff
Index: telegraf-1.19.0/scripts/telegraf.service
|
|
===================================================================
|
|
--- telegraf-1.19.0.orig/scripts/telegraf.service
|
|
+++ telegraf-1.19.0/scripts/telegraf.service
|
|
@@ -4,6 +4,19 @@ Documentation=https://github.com/influxd
|
|
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
|
|
+# end of automatic additions
|
|
EnvironmentFile=-/etc/default/telegraf
|
|
User=telegraf
|
|
ExecStart=/usr/bin/telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d $TELEGRAF_OPTS
|