Accepting request 940847 from security:Stunnel
OBS-URL: https://build.opensuse.org/request/show/940847 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/stunnel?expand=0&rev=28
This commit is contained in:
commit
cfe491e169
24
harden_stunnel.service.patch
Normal file
24
harden_stunnel.service.patch
Normal file
@ -0,0 +1,24 @@
|
||||
Index: stunnel-5.60/tools/stunnel.service.in
|
||||
===================================================================
|
||||
--- stunnel-5.60.orig/tools/stunnel.service.in
|
||||
+++ stunnel-5.60/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
|
||||
ExecStart=@bindir@/stunnel
|
||||
Type=forking
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 24 08:51:33 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
|
||||
|
||||
- Added hardening to systemd service(s) (bsc#1181400). Added patch(es):
|
||||
* harden_stunnel.service.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 17 10:35:45 UTC 2021 - Andreas Vetter <vetter@physik.uni-wuerzburg.de>
|
||||
|
||||
|
@ -53,6 +53,7 @@ Source4: stunnel.rc
|
||||
Source7: stunnel.README
|
||||
# PATCH-FIX-UPSTREAM Fix service file, so it ensure we are starting after network is really up!
|
||||
Patch1: stunnel-5.59_service_always_after_network.patch
|
||||
Patch2: harden_stunnel.service.patch
|
||||
BuildRequires: libopenssl-devel
|
||||
BuildRequires: tcpd-devel
|
||||
BuildRequires: zlib-devel
|
||||
@ -89,6 +90,7 @@ This package contains additional documentation for the stunnel program.
|
||||
%patch1 -p1
|
||||
chmod -x %{_builddir}/stunnel-%{version}/tools/ca.*
|
||||
chmod -x %{_builddir}/stunnel-%{version}/tools/importCA.*
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
sed -i 's/-m 1770//g' tools/Makefile.in
|
||||
|
Loading…
x
Reference in New Issue
Block a user