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

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