cfengine/harden_cf-execd.service.patch

25 lines
774 B
Diff

Index: core-3.17.0/misc/systemd/cf-execd.service.in
===================================================================
--- core-3.17.0.orig/misc/systemd/cf-execd.service.in
+++ core-3.17.0/misc/systemd/cf-execd.service.in
@@ -6,6 +6,19 @@ ConditionPathExists=@workdir@/inputs/pro
PartOf=cfengine3.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-execd --no-fork
Restart=always