forked from pool/collectd
138347db68
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/915057 OBS-URL: https://build.opensuse.org/package/show/server:monitoring/collectd?expand=0&rev=172
25 lines
852 B
Diff
25 lines
852 B
Diff
Index: collectd-5.12.0/contrib/systemd.collectd.service
|
|
===================================================================
|
|
--- collectd-5.12.0.orig/contrib/systemd.collectd.service
|
|
+++ collectd-5.12.0/contrib/systemd.collectd.service
|
|
@@ -5,6 +5,19 @@ After=local-fs.target network-online.tar
|
|
Requires=local-fs.target 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
|
|
ExecStart=/usr/sbin/collectd
|
|
EnvironmentFile=-/etc/sysconfig/collectd
|
|
EnvironmentFile=-/etc/default/collectd
|