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

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