Accepting request 933573 from devel:languages:go
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 (forwarded request 933468 from jsegitz) OBS-URL: https://build.opensuse.org/request/show/933573 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/telegraf?expand=0&rev=10
This commit is contained in:
commit
ca1e3620bd
24
harden_telegraf.service.patch
Normal file
24
harden_telegraf.service.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
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
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 24 14:18:31 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
|
||||||
|
|
||||||
|
- Added hardening to systemd service(s) (bsc#1181400). Added patch(es):
|
||||||
|
* harden_telegraf.service.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jul 01 13:26:54 UTC 2021 - rpm@fthiessen.de
|
Thu Jul 01 13:26:54 UTC 2021 - rpm@fthiessen.de
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@ Group: System/Monitoring
|
|||||||
URL: https://github.com/influxdata/telegraf
|
URL: https://github.com/influxdata/telegraf
|
||||||
Source: %{name}-%{version}.tar.xz
|
Source: %{name}-%{version}.tar.xz
|
||||||
Source1: vendor.tar.xz
|
Source1: vendor.tar.xz
|
||||||
|
Patch0: harden_telegraf.service.patch
|
||||||
BuildRequires: git-core
|
BuildRequires: git-core
|
||||||
BuildRequires: golang-packaging
|
BuildRequires: golang-packaging
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
@ -41,6 +42,7 @@ easily add support for collecting metrics from local or remote services.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%setup -q -T -D -a 1
|
%setup -q -T -D -a 1
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Build the binary.
|
# Build the binary.
|
||||||
|
Loading…
Reference in New Issue
Block a user