Dominique Leuenberger 2021-12-29 20:10:45 +00:00 committed by Git OBS Bridge
commit e610d7c004
3 changed files with 29 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Oct 15 07:32:06 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
- Added hardening to systemd service(s) (bsc#1181400). Added patch(es):
* harden_gammu-smsd.service.patch
-------------------------------------------------------------------
Tue Apr 6 09:39:34 UTC 2021 - Martin Hauke <mardnh@gmx.de>

View File

@ -31,6 +31,7 @@ Patch1: gammu-remove-gplv3-files.patch
Patch2: 0001-Enable-fPIE-pie.patch
Patch3: 0001-Update-Python-scripts-to-Python-3.patch
Patch4: 0001-Docs-Adjust-attributes-order-to-avoid-bugs-in-breath.patch
Patch5: harden_gammu-smsd.service.patch
BuildRequires: cmake >= 2.8
BuildRequires: doxygen
BuildRequires: gettext
@ -189,6 +190,7 @@ This package contains the Gammu SMS daemon shared library.
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
# GPL-3.0 licensed files, bnc#775397
rm -rf contrib/sms-gammu2android

View File

@ -0,0 +1,21 @@
Index: gammu-1.42.0/contrib/init/gammu-smsd.service
===================================================================
--- gammu-1.42.0.orig/contrib/init/gammu-smsd.service
+++ gammu-1.42.0/contrib/init/gammu-smsd.service
@@ -4,6 +4,16 @@ Documentation=man:gammu-smsd(1)
After=mysql.service postgresql.service network-online.target
[Service]
+# added automatically, for details please see
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+ProtectSystem=full
+ProtectHostname=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
+# end of automatic additions
EnvironmentFile=-/etc/sysconfig/gammu-smsd
# Run daemon as root user
ExecStart=${CMAKE_INSTALL_FULL_BINDIR}/gammu-smsd --pid=/var/run/gammu-smsd.pid --daemon