forked from pool/libvma
Accepting request 931508 from science:HPC
OBS-URL: https://build.opensuse.org/request/show/931508 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libvma?expand=0&rev=12
This commit is contained in:
commit
6249ece8bb
24
harden_vma.service.patch
Normal file
24
harden_vma.service.patch
Normal file
@ -0,0 +1,24 @@
|
||||
Index: libvma-9.3.1.0.47396f1a5eaa/contrib/scripts/vma.service.in
|
||||
===================================================================
|
||||
--- libvma-9.3.1.0.47396f1a5eaa.orig/contrib/scripts/vma.service.in
|
||||
+++ libvma-9.3.1.0.47396f1a5eaa/contrib/scripts/vma.service.in
|
||||
@@ -3,6 +3,19 @@ Description=VMA 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
|
||||
+PrivateDevices=true
|
||||
+ProtectHostname=true
|
||||
+ProtectClock=true
|
||||
+ProtectKernelTunables=true
|
||||
+ProtectKernelModules=true
|
||||
+ProtectKernelLogs=true
|
||||
+ProtectControlGroups=true
|
||||
+RestrictRealtime=true
|
||||
+# end of automatic additions
|
||||
Type=forking
|
||||
Restart=on-failure
|
||||
ExecStart=@prefix@/sbin/vmad
|
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 5 09:08:03 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
|
||||
|
||||
- Added hardening to systemd service(s) (bsc#1181400). Added patch(es):
|
||||
* harden_vma.service.patch
|
||||
Modified:
|
||||
* vma.service
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 26 11:11:24 UTC 2021 - Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
||||
|
||||
|
@ -29,6 +29,7 @@ Release: 0
|
||||
Source0: %{name}-%{version}%{git_ver}.tar.gz
|
||||
Source1: vma.service
|
||||
Patch1: issue-2485156-Fix-fc35-issues.patch
|
||||
Patch2: harden_vma.service.patch
|
||||
URL: https://github.com/Mellanox/libvma
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
@ -72,6 +73,7 @@ Headers and symbolink link required to compile and link with the Libvma library.
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}%{git_ver}
|
||||
%patch1
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
./autogen.sh
|
||||
|
13
vma.service
13
vma.service
@ -9,6 +9,19 @@ After=rdma-load-modules@rdma.service
|
||||
After=rdma-hw.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=simple
|
||||
Restart=on-failure
|
||||
ExecStart=/usr/sbin/vmad
|
||||
|
Loading…
Reference in New Issue
Block a user