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

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