forked from pool/telegraf
8ab36df5c1
- Update to version 1.22.1: - Refresh harden_telegraf.service.patch OBS-URL: https://build.opensuse.org/request/show/972725 OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/telegraf?expand=0&rev=39
25 lines
717 B
Diff
25 lines
717 B
Diff
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
|
|
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
|
|
Type=notify
|
|
EnvironmentFile=-/etc/default/telegraf
|
|
User=telegraf
|