Blame SOURCES/0006-srp_daemon-Remove-unsupported-systemd-configurations.patch

6698ac
From 01ff44aeedce5dba803ea7ae761fa06615b6e0af Mon Sep 17 00:00:00 2001
6698ac
From: Honggang Li <honli@redhat.com>
6698ac
Date: Wed, 27 Dec 2017 11:44:33 +0800
6698ac
Subject: [PATCH] srp_daemon: Remove unsupported systemd configurations
6698ac
6698ac
Note: This is rhel-7.5 specific patch.
6698ac
6698ac
+--------------------------+---------------+
6698ac
| lvalue                   | systemd       |
6698ac
+--------------------------+---------------+
6698ac
| MemoryDenyWriteExecute   | 231           |
6698ac
| ProtectControlGroups     | 232           |
6698ac
| ProtectKernelModules     | 232           |
6698ac
| RestrictRealtime         | 231           |
6698ac
+--------------------------+---------------+
6698ac
6698ac
RHEL-7.5 includes systemd-219-51 which does not support
6698ac
those configuration yet, so remove them.
6698ac
6698ac
Signed-off-by: Honggang Li <honli@redhat.com>
6698ac
---
6698ac
 srp_daemon/srp_daemon.service.in       | 3 ---
6698ac
 srp_daemon/srp_daemon_port@.service.in | 4 ----
6698ac
 2 files changed, 7 deletions(-)
6698ac
6698ac
diff --git a/srp_daemon/srp_daemon.service.in b/srp_daemon/srp_daemon.service.in
6698ac
index 93e44425..b8bea643 100644
6698ac
--- a/srp_daemon/srp_daemon.service.in
6698ac
+++ b/srp_daemon/srp_daemon.service.in
6698ac
@@ -10,11 +10,8 @@ Before=remote-fs-pre.target
6698ac
 Type=oneshot
6698ac
 RemainAfterExit=yes
6698ac
 ExecStart=@CMAKE_INSTALL_FULL_LIBEXECDIR@/srp_daemon/start_on_all_ports
6698ac
-MemoryDenyWriteExecute=yes
6698ac
 PrivateTmp=yes
6698ac
 ProtectHome=yes
6698ac
-ProtectKernelModules=yes
6698ac
-RestrictRealtime=yes
6698ac
 
6698ac
 [Install]
6698ac
 WantedBy=remote-fs-pre.target
6698ac
diff --git a/srp_daemon/srp_daemon_port@.service.in b/srp_daemon/srp_daemon_port@.service.in
6698ac
index 3d5a11e8..7516e8a2 100644
6698ac
--- a/srp_daemon/srp_daemon_port@.service.in
6698ac
+++ b/srp_daemon/srp_daemon_port@.service.in
6698ac
@@ -24,14 +24,10 @@ BindsTo=srp_daemon.service
6698ac
 [Service]
6698ac
 Type=simple
6698ac
 ExecStart=@CMAKE_INSTALL_FULL_SBINDIR@/srp_daemon --systemd -e -c -n -j %I -R 60
6698ac
-MemoryDenyWriteExecute=yes
6698ac
 PrivateNetwork=yes
6698ac
 PrivateTmp=yes
6698ac
-ProtectControlGroups=yes
6698ac
 ProtectHome=yes
6698ac
-ProtectKernelModules=yes
6698ac
 ProtectSystem=full
6698ac
-RestrictRealtime=yes
6698ac
 SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io
6698ac
 
6698ac
 [Install]
6698ac
-- 
6698ac
2.15.GIT
6698ac