Accepting request 923290 from home:jsegitz:branches:systemdhardening:network:telephony

Automatic systemd hardening effort by the security team. This has not been tested. For details please see https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort

OBS-URL: https://build.opensuse.org/request/show/923290
OBS-URL: https://build.opensuse.org/package/show/network:telephony/libosmo-sccp?expand=0&rev=47
This commit is contained in:
Jan Engelhardt 2021-10-11 07:38:35 +00:00 committed by Git OBS Bridge
parent 7a6683c149
commit 4d85993bc7
3 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,24 @@
Index: libosmo-sccp-1.4.0/contrib/systemd/osmo-stp.service
===================================================================
--- libosmo-sccp-1.4.0.orig/contrib/systemd/osmo-stp.service
+++ libosmo-sccp-1.4.0/contrib/systemd/osmo-stp.service
@@ -3,6 +3,19 @@ Description=Osmocom STP (Signal Transfer
Documentation=https://osmocom.org/projects/osmo-stp/wiki
[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
Type=simple
Restart=always
ExecStart=/usr/bin/osmo-stp -c /etc/osmocom/osmo-stp.cfg

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Oct 5 06:18:17 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
- Added hardening to systemd service(s) (bsc#1181400). Added patch(es):
* harden_osmo-stp.service.patch
-------------------------------------------------------------------
Sun Mar 14 20:59:25 UTC 2021 - Jan Engelhardt <jengelh@inai.de>

View File

@ -28,6 +28,7 @@ URL: https://projects.osmocom.org/projects/libosmo-sccp
#Git-Clone: https://git.osmocom.org/libosmo-sccp
Source: https://github.com/osmocom/libosmo-sccp/archive/%version.tar.gz
Patch1: 0001-build-fixes.patch
Patch2: harden_osmo-stp.service.patch
BuildRequires: automake >= 1.6
BuildRequires: libtool >= 2
BuildRequires: lksctp-tools-devel