SHA256
1
0
forked from pool/rpcbind
Dominique Leuenberger 2023-04-29 15:27:40 +00:00 committed by Git OBS Bridge
commit 2e4c2e1f75
3 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,24 @@
Index: rpcbind-1.2.6/systemd/rpcbind.service.in
===================================================================
--- rpcbind-1.2.6.orig/systemd/rpcbind.service.in
+++ rpcbind-1.2.6/systemd/rpcbind.service.in
@@ -11,6 +11,19 @@ Wants=rpcbind.target
After=sysinit.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
Type=notify
# distro can provide a drop-in adding EnvironmentFile=-/??? if needed.
EnvironmentFile=-/etc/sysconfig/rpcbind

View File

@ -8,6 +8,12 @@ Tue Dec 27 13:16:20 UTC 2022 - Ludwig Nussel <lnussel@suse.com>
- Replace transitional %usrmerged macro with regular version check (boo#1206798)
-------------------------------------------------------------------
Tue Nov 16 07:39:53 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
- Added hardening to systemd service(s) (bsc#1181400). Added patch(es):
* harden_rpcbind.service.patch
-------------------------------------------------------------------
Mon Jun 21 15:44:17 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>

View File

@ -33,6 +33,7 @@ Source2: sysconfig.rpcbind
Source5: rpc-user.conf
Patch1: 0001-systemd-unit-files.patch
Patch2: 0001-change-lockingdir-to-run.patch
Patch3: harden_rpcbind.service.patch
BuildRequires: libtirpc-devel >= 1.0.1
BuildRequires: libtool
BuildRequires: pkgconfig