Blame SOURCES/Start-stalld-service-as-initrc_t.patch

c0e846
From 476152742021303d2defeb69f524bcc302618081 Mon Sep 17 00:00:00 2001
c0e846
From: Leah Leshchinsky <lleshchi@redhat.com>
c0e846
Date: Mon, 29 Aug 2022 14:07:39 -0400
c0e846
Subject: [PATCH] Start stalld service as initrc_t
c0e846
c0e846
Stalld currently runs as an unconfined_service_t.
c0e846
c0e846
Edit to service file so that the daemon is launched as an initrc_t.
c0e846
c0e846
Signed-off-by: Leah Leshchinsky <lleshchi@redhat.com>
c0e846
c0e846
diff --git a/redhat/stalld.service b/redhat/stalld.service
c0e846
index e0eb4b77b0a7..bcd4b767f629 100644
c0e846
--- a/redhat/stalld.service
c0e846
+++ b/redhat/stalld.service
c0e846
@@ -9,7 +9,7 @@ ExecStartPre=/usr/bin/throttlectl off
c0e846
 
c0e846
 # In case the regex passed to IT or IP includes C escape sequences,
c0e846
 # use ${IT} or ${IP} instead of $IT or $IP
c0e846
-ExecStart=/usr/bin/stalld --systemd $CLIST $AGGR $BP $BR $BD $THRESH $LOGGING $FG $PF $IT $IP
c0e846
+ExecStart=/bin/sh -c "/usr/bin/stalld --systemd $CLIST $AGGR $BP $BR $BD $THRESH $LOGGING $FG $PF $IT $IP"
c0e846
 ExecStopPost=/usr/bin/throttlectl on
c0e846
 CPUSchedulingPolicy=fifo
c0e846
 CPUSchedulingPriority=10
c0e846
-- 
c0e846
2.31.1
c0e846