Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package telegraf for openSUSE:Factory checked in at 2021-11-24 23:54:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/telegraf (Old) and /work/SRC/openSUSE:Factory/.telegraf.new.1895 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "telegraf" Wed Nov 24 23:54:37 2021 rev:10 rq:933573 version:1.19.0 Changes: -------- --- /work/SRC/openSUSE:Factory/telegraf/telegraf.changes 2021-07-02 13:28:04.440478039 +0200 +++ /work/SRC/openSUSE:Factory/.telegraf.new.1895/telegraf.changes 2021-11-24 23:55:05.172355420 +0100 @@ -1,0 +2,6 @@ +Wed Nov 24 14:18:31 UTC 2021 - Johannes Segitz <jseg...@suse.com> + +- Added hardening to systemd service(s) (bsc#1181400). Added patch(es): + * harden_telegraf.service.patch + +------------------------------------------------------------------- New: ---- harden_telegraf.service.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ telegraf.spec ++++++ --- /var/tmp/diff_new_pack.hxdYYW/_old 2021-11-24 23:55:05.864353097 +0100 +++ /var/tmp/diff_new_pack.hxdYYW/_new 2021-11-24 23:55:05.864353097 +0100 @@ -26,6 +26,7 @@ URL: https://github.com/influxdata/telegraf Source: %{name}-%{version}.tar.xz Source1: vendor.tar.xz +Patch0: harden_telegraf.service.patch BuildRequires: git-core BuildRequires: golang-packaging BuildRequires: systemd-rpm-macros @@ -41,6 +42,7 @@ %prep %setup -q %setup -q -T -D -a 1 +%patch0 -p1 %build # Build the binary. ++++++ harden_telegraf.service.patch ++++++ 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