stunnel/harden_stunnel.service.patch
Andreas Vetter ebd9d0dd8a Accepting request 1077065 from home:dirkmueller:Factory
- update to 5.69:
  * Improved logging performance with the "output" option.
  * Improved file read performance on the WIN32 platform.
  * DH and kDHEPSK ciphersuites removed from FIPS defaults.
  * Set the LimitNOFILE ulimit in stunnel.service to allow
  * for up to 10,000 concurrent clients.
  * Fixed the "CApath" option on the WIN32 platform by
  * applying https://github.com/openssl/openssl/pull/20312.
  * Fixed stunnel.spec used for building rpm packages.
  * Fixed tests on some OSes and architectures by merging

OBS-URL: https://build.opensuse.org/request/show/1077065
OBS-URL: https://build.opensuse.org/package/show/security:Stunnel/stunnel?expand=0&rev=160
2023-04-04 06:00:01 +00:00

25 lines
784 B
Diff

Index: stunnel-5.69/tools/stunnel.service.in
===================================================================
--- stunnel-5.69.orig/tools/stunnel.service.in
+++ stunnel-5.69/tools/stunnel.service.in
@@ -4,6 +4,19 @@ After=syslog.target network-online.targe
Wants=syslog.target network-online.target
[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
LimitNOFILE=20480
ExecStart=@bindir@/stunnel
ExecReload=/bin/kill -HUP $MAINPID