drop NoNewPrivs from irqbalance service

Resolves: rhbz1963152

Signed-off-by: Kairui Song <kasong@redhat.com>
This commit is contained in:
Kairui Song 2021-07-30 22:38:46 +08:00
parent 734d81577f
commit 11f0aaa166
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,31 @@
From 43751dfc7f29fbf2c46ffcd4fdb6d3f6db291927 Mon Sep 17 00:00:00 2001
From: Neil Horman <nhorman@gmail.com>
Date: Wed, 12 May 2021 09:26:10 -0400
Subject: [PATCH] drop NoNewPrivs from irqbalance service
A recent update to libcapng is issuing an error in the system log,
caused by the fact that irqbalance attempts to drop capabilities when
the systemd service unit has already done so for us. Since irqbalance
drops the caps correctly, theres really no need for us to do so via
systemd as well. So lets drop NoNewCaps in the service unit.
Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
---
misc/irqbalance.service | 1 -
1 file changed, 1 deletion(-)
diff --git a/misc/irqbalance.service b/misc/irqbalance.service
index e7a3336..014798c 100644
--- a/misc/irqbalance.service
+++ b/misc/irqbalance.service
@@ -9,7 +9,6 @@ EnvironmentFile=-/usr/lib/irqbalance/defaults.env
EnvironmentFile=-/path/to/irqbalance.env
ExecStart=/usr/sbin/irqbalance --foreground $IRQBALANCE_ARGS
CapabilityBoundingSet=
-NoNewPrivileges=yes
ReadOnlyPaths=/
ReadWritePaths=/proc/irq
RestrictAddressFamilies=AF_UNIX
--
2.31.1

View File

@ -23,12 +23,15 @@ Requires: numactl-libs
ExcludeArch: s390 s390x ExcludeArch: s390 s390x
Patch1: irqbalance-1.8.0-drop-NoNewPrivs-from-irqbalance-service.patch
%description %description
irqbalance is a daemon that evenly distributes IRQ load across irqbalance is a daemon that evenly distributes IRQ load across
multiple CPUs for enhanced performance. multiple CPUs for enhanced performance.
%prep %prep
%setup -q %setup -q
%patch1 -p1
%build %build
./autogen.sh ./autogen.sh