forked from pool/telegraf
f2c523bc7e
- Update to version 1.23.3: OBS-URL: https://build.opensuse.org/request/show/991142 OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/telegraf?expand=0&rev=41
25 lines
701 B
Diff
25 lines
701 B
Diff
diff --git a/scripts/telegraf.service b/scripts/telegraf.service
|
|
index 1726913b0..e9ca1ff3f 100644
|
|
--- a/scripts/telegraf.service
|
|
+++ b/scripts/telegraf.service
|
|
@@ -5,6 +5,19 @@ After=network-online.target
|
|
Wants=network-online.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
|