Dominique Leuenberger 2021-10-12 20:47:46 +00:00 committed by Git OBS Bridge
commit ebe8caad88
3 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,23 @@
Index: ndppd-0.2.5.43/ndppd.service
===================================================================
--- ndppd-0.2.5.43.orig/ndppd.service
+++ ndppd-0.2.5.43/ndppd.service
@@ -3,6 +3,18 @@ Description=NDP Proxy Daemon
After=network.target
[Service]
+# added automatically, for details please see
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+ProtectSystem=full
+ProtectHome=true
+ProtectHostname=true
+ProtectClock=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
+# end of automatic additions
ExecStart=/usr/sbin/ndppd -d -p /var/run/ndppd/ndppd.pid
Type=forking
PIDFile=/var/run/ndppd/ndppd.pid

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Oct 11 07:23:40 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
- Added hardening to systemd service(s) (bsc#1181400). Added patch(es):
* harden_ndppd.service.patch
-------------------------------------------------------------------
Tue Dec 18 12:54:41 UTC 2018 - Jan Engelhardt <jengelh@inai.de>

View File

@ -27,6 +27,7 @@ URL: https://github.com/DanielAdolfsson/ndppd
#Source: https://github.com/DanielAdolfsson/%%{name}/archive/%%{version}.tar.gz#/%%{name}-%%{version}.tar.gz
Source: %{name}-%{version}.tar.xz
Source1: ndppd-tmpfiles.conf
Patch0: harden_ndppd.service.patch
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: systemd-rpm-macros
@ -44,6 +45,7 @@ The daemon is partially compliant with (experimental) RFC4389.
%prep
%setup -q
%patch0 -p1
%build
export CXXFLAGS='%{optflags}'