File harden_openfortivpn@.service.patch of Package openfortivpn
Index: openfortivpn-1.17.1/lib/systemd/system/openfortivpn@.service.in =================================================================== --- openfortivpn-1.17.1.orig/lib/systemd/system/openfortivpn@.service.in +++ openfortivpn-1.17.1/lib/systemd/system/openfortivpn@.service.in @@ -6,6 +6,17 @@ Documentation=man:openfortivpn(1) [Service] Type=simple 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