stunnel/harden_stunnel.service.patch
Andreas Vetter dfcdb1687f - Update to version 5.74:
* Bugfixes
    - Fixed a stapling cache deallocation crash.
    - Fixed "redirect" with protocol negotiation.
  * Features
    - "protocolHost" support for "socks" protocol clients.
    - More detailed logs in OpenSSL 3.0 or later.

OBS-URL: https://build.opensuse.org/package/show/security:Stunnel/stunnel?expand=0&rev=178
2025-01-07 10:53:04 +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