cfengine/harden_cf-hub.service.patch
Klaus Kämpf 20a8476b48 Accepting request 957421 from home:susnux:branches:systemsmanagement
Update to version 3.19.0

Fix CVE-2021-38379 - Publicly available exported reports
Fix CVE-2021-36756 - Certificate not checked in Federated Reporting

OBS-URL: https://build.opensuse.org/request/show/957421
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=196
2022-02-25 07:51:20 +00:00

25 lines
755 B
Diff

Index: core-3.19.0/misc/systemd/cf-hub.service.in
===================================================================
--- core-3.19.0.orig/misc/systemd/cf-hub.service.in
+++ core-3.19.0/misc/systemd/cf-hub.service.in
@@ -10,6 +10,19 @@ Wants=cf-postgres.service
After=cf-postgres.service
[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=simple
ExecStart=@bindir@/cf-hub --no-fork
Restart=always