diff --git a/add-ExecStartPost-option-to-restorecond-service.patch b/add-ExecStartPost-option-to-restorecond-service.patch new file mode 100644 index 0000000000000000000000000000000000000000..45decb03a72135d063e90e0d540010b28c7e8aab --- /dev/null +++ b/add-ExecStartPost-option-to-restorecond-service.patch @@ -0,0 +1,29 @@ +From 6f7b8340fa9e8e1ca8d6b0a27a5b1c9a27cf4a85 Mon Sep 17 00:00:00 2001 +From: panxiaohe +Date: Thu, 4 Aug 2022 17:01:38 +0800 +Subject: [PATCH] add ExecStartPost option to restorecond.service + +Add ExecStartPost option to restorecond.service in order not +to display the following message when starting restorecond. +"Can't open PID file /run/restorecond.pid (yet?) after start: +No such file or directory" + +--- + restorecond-3.1/restorecond.service | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/restorecond-3.1/restorecond.service b/restorecond-3.1/restorecond.service +index 0e4ea72..b3a8693 100644 +--- a/restorecond-3.1/restorecond.service ++++ b/restorecond-3.1/restorecond.service +@@ -7,6 +7,7 @@ ConditionSecurity=selinux + [Service] + Type=forking + ExecStart=/usr/sbin/restorecond ++ExecStartPost=/usr/bin/sleep 0.1 + PIDFile=/run/restorecond.pid + + [Install] +-- +2.27.0 + diff --git a/policycoreutils.spec b/policycoreutils.spec index 8a63a2705b5d67a3a2450615f1f81dd13895946c..3183f81bc4fde009d0c3b64d7f1a36c6f29330c8 100644 --- a/policycoreutils.spec +++ b/policycoreutils.spec @@ -3,7 +3,7 @@ Name: policycoreutils Version: 3.1 -Release: 7 +Release: 8 Summary: Policy core utilities of selinux License: GPLv2 URL: https://github.com/SELinuxProject @@ -21,6 +21,7 @@ Source11: selinux-autorelabel-generator.sh Patch0: fix-fixfiles-N-date-function.patch Patch1: fix-fixfiles-N-date-function-two.patch +Patch2: add-ExecStartPost-option-to-restorecond-service.patch BuildRequires: gcc BuildRequires: pam-devel libsepol-static >= 3.1 libsemanage-static >= 3.1 libselinux-devel >= 3.1 libcap-devel audit-libs-devel gettext @@ -266,6 +267,9 @@ find %{buildroot}%{python3_sitelib} %{buildroot}%{python3_sitearch} \ %{_mandir}/* %changelog +* Tue Aug 9 2022 panxiaohe - 3.1-8 +- add ExecStartPost option to restorecond.service + * Fri Jun 4 2021 panxiaohe - 3.1-7 - add gcc to BuildRequires - fix fixfiles -N date function