cfengine/harden_cf-hub.service.patch

25 lines
758 B
Diff

Index: core-3.17.0/misc/systemd/cf-hub.service.in
===================================================================
--- core-3.17.0.orig/misc/systemd/cf-hub.service.in
+++ core-3.17.0/misc/systemd/cf-hub.service.in
@@ -10,6 +10,19 @@ After=cf-postgres.service
Requires=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