File harden_openfortivpn@.service.patch of Package openfortivpn
diff --git a/lib/systemd/system/openfortivpn@.service.in b/lib/systemd/system/openfortivpn@.service.in index 154bf60..7336b8f 100644 --- a/lib/systemd/system/openfortivpn@.service.in +++ b/lib/systemd/system/openfortivpn@.service.in @@ -6,6 +6,17 @@ Documentation=man:openfortivpn(1) [Service] Type=notify PrivateTmp=true +# added automatically, for details please see +# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort +ProtectSystem=full +ProtectHome=true +ProtectHostname=true +ProtectKernelTunables=true +ProtectKernelModules=true +ProtectKernelLogs=true +ProtectControlGroups=true +RestrictRealtime=true +# end of automatic additions ExecStart=@BINDIR@/openfortivpn -c @SYSCONFDIR@/openfortivpn/%I.conf OOMScoreAdjust=-100