Fix 0008 patch name and content

Minor change, dropped PIDFile
This commit is contained in:
Petr Lautrbach 2026-04-07 07:38:17 +02:00
commit dc36266331
2 changed files with 9 additions and 8 deletions

View file

@ -1,7 +1,7 @@
From 82306f5732d5db6e6065a8f95a7bdd38a5e56e3c Mon Sep 17 00:00:00 2001
From 3f04fb1172c94a98e5a4dc0e1f69172e3acbc7d7 Mon Sep 17 00:00:00 2001
From: Petr Lautrbach <lautrbach@redhat.com>
Date: Thu, 2 Apr 2026 17:19:05 +0200
Subject: [PATCH] restorecond.service: Move to simple type
Subject: [PATCH] restorecond.service: Use Type=simple
Content-type: text/plain
There's a race condition when daemon() in parent process immediately
@ -15,24 +15,25 @@ Fixes:
Signed-off-by: Petr Lautrbach <lautrbach@redhat.com>
---
restorecond/restorecond.service | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
restorecond/restorecond.service | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/restorecond/restorecond.service b/restorecond/restorecond.service
index 0e4ea72d08ae..e84a2a58bfe5 100644
index 0e4ea72d08ae..56f970707d93 100644
--- a/restorecond/restorecond.service
+++ b/restorecond/restorecond.service
@@ -5,8 +5,8 @@ ConditionPathExists=/etc/selinux/restorecond.conf
@@ -5,9 +5,8 @@ ConditionPathExists=/etc/selinux/restorecond.conf
ConditionSecurity=selinux
[Service]
-Type=forking
-ExecStart=/usr/sbin/restorecond
-PIDFile=/run/restorecond.pid
+Type=simple
+ExecStart=/usr/sbin/restorecond -F
PIDFile=/run/restorecond.pid
[Install]
WantedBy=multi-user.target
--
2.53.0

View file

@ -47,7 +47,7 @@ Patch0004: 0004-Use-SHA-2-instead-of-SHA-1.patch
Patch0005: 0005-python-sepolicy-Fix-spec-file-dependencies.patch
Patch0006: 0006-sepolicy-Fix-detection-of-writeable-locations.patch
Patch0007: 0007-restorecond-Add-F-for-run-in-foreground.patch
Patch0008: 0008-restorecond.service-Move-to-simple-type.patch
Patch0008: 0008-restorecond.service-Use-Type-simple.patch
# Patch list end
# gen_changelog