Put back patch to run stalld service as initrc_t

Resolves: RHEL-8982
Signed-off-by: John Kacur <jkacur@redhat.com>
This commit is contained in:
John Kacur 2024-02-15 12:25:15 -05:00
parent f6167ccc62
commit 484a918603
2 changed files with 38 additions and 1 deletions

View File

@ -0,0 +1,31 @@
From c93cef85e7ec08d924ad6a4f90a8677cc1603950 Mon Sep 17 00:00:00 2001
From: John Kacur <jkacur@redhat.com>
Date: Wed, 14 Feb 2024 15:55:30 -0500
Subject: [PATCH] Start stalld service as initrc_t
Stalld currently runs as an unconfined_service_t.
Edit to service file so that the daemon is launched as an initrc_t.
Signed-off-by: Leah Leshchinsky <lleshchi@redhat.com>
Signed-off-by: John Kacur <jkacur@redhat.com>
---
systemd/stalld.service | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/systemd/stalld.service b/systemd/stalld.service
index d93110b1b43e..69f3ee728129 100644
--- a/systemd/stalld.service
+++ b/systemd/stalld.service
@@ -10,7 +10,7 @@ ExecStartPre=/usr/bin/throttlectl off
# In case the regex passed to IT or IP includes C escape sequences,
# use ${IT} or ${IP} instead of $IT or $IP
-ExecStart=/usr/bin/stalld --systemd $CLIST $AGGR $BP $BR $BD $THRESH $LOGGING $FG $PF $IT $IP
+ExecStart=/bin/sh -c "/usr/bin/stalld --systemd $CLIST $AGGR $BP $BR $BD $THRESH $LOGGING $FG $PF $IT $IP"
ExecStopPost=/usr/bin/throttlectl on
CPUSchedulingPolicy=fifo
CPUSchedulingPriority=10
--
2.43.0

View File

@ -1,6 +1,6 @@
Name: stalld Name: stalld
Version: 1.19.1 Version: 1.19.1
Release: 3%{?dist} Release: 4%{?dist}
Summary: Daemon that finds starving tasks and gives them a temporary boost Summary: Daemon that finds starving tasks and gives them a temporary boost
License: GPLv2 License: GPLv2
@ -23,6 +23,8 @@ BuildRequires: llvm
Requires: libbpf Requires: libbpf
%endif %endif
Patch0: Start-stalld-service-as-initrc_t.patch
%description %description
The stalld program monitors the set of system threads, The stalld program monitors the set of system threads,
looking for threads that are ready-to-run but have not looking for threads that are ready-to-run but have not
@ -60,6 +62,10 @@ allow 10 microseconds of runtime for 1 second of clock time.
%systemd_postun_with_restart %{name}.service %systemd_postun_with_restart %{name}.service
%changelog %changelog
* Wed Feb 14 2024 John Kacur <jkacur@redhat.com> - 1.19.1-4
- Put back patch to run stalld service as initrc_t
Resolves: RHEL-8982
* Mon Feb 12 2024 John Kacur <jkacur@redhat.com> - 1.19.1-3 * Mon Feb 12 2024 John Kacur <jkacur@redhat.com> - 1.19.1-3
- Copying over missing tests directory - Copying over missing tests directory
Resolves: RHEL-8982 Resolves: RHEL-8982