Bug 2090269

Summary: restorecon: Regex version mismatch, expected: 10.40 2022-04-14 actual: 10.37 2021-05-26
Product: Red Hat Enterprise Linux 9 Reporter: Marcel Haerry <mh>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: CentOS StreamCC: bstinson, jwboyer, leonfauster, lvrabec, mmalik, ssekidde, suwu, xiliang, xuli, xxiong, yuxisun
Target Milestone: rcKeywords: Triaged
Target Release: 9.1   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-34.1.34-1.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-15 11:13:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marcel Haerry 2022-05-25 13:05:52 UTC
Description of problem:

After upgrading to 34.1.32-1 many tools reported output in the title.

This can be fixed by rebuilding selinux policy.

It seems something is not fully done when updating.

This was already an issue on F35: https://ask.fedoraproject.org/t/regex-version-mismatch-expected-10-39-fedora-35/19711/7


# restorecon /tmp
restorecon: Regex version mismatch, expected: 10.40 2022-04-14 actual: 10.37 2021-05-26
restorecon: Regex version mismatch, expected: 10.40 2022-04-14 actual: 10.37 2021-05-26
# semodule -B
# restorecon /tmp
# rpm -qi selinux-policy
Name        : selinux-policy
Version     : 34.1.32
Release     : 1.el9
Architecture: noarch
Install Date: Tue 24 May 2022 06:44:18 AM UTC
Group       : Unspecified
Size        : 25206
License     : GPLv2+
Signature   : RSA/SHA256, Thu 12 May 2022 09:53:00 AM UTC, Key ID 05b555b38483c65d
Source RPM  : selinux-policy-34.1.32-1.el9.src.rpm
Build Date  : Wed 11 May 2022 07:37:29 PM UTC
Build Host  : x86-02.stream.rdu2.redhat.com
Packager    : builder
Vendor      : CentOS
URL         : https://github.com/fedora-selinux/selinux-policy
Summary     : SELinux policy configuration
Description :
SELinux core policy package.
Originally based off of reference policy,
the policy has been adjusted to provide support for Fedora.

Comment 1 Zdenek Pytela 2022-05-25 14:06:19 UTC
Dist-git commit to backport:
commit b15718470a296a7f10448e931e66ddc9a157098d (plautrba/pcre2)
Author: Petr Lautrbach <plautrba>
Date:   Mon Oct 18 14:44:42 2021 +0200

    Connect triggerin to pcre2 instead of pcre

Comment 2 Leon Fauster 2022-05-27 20:32:53 UTC
The patch of b15718470a296a7f10448e931e66ddc9a157098d

---

diff --git a/selinux-policy.spec b/selinux-policy.spec
index 81e947e..16f42d3 100644
--- a/selinux-policy.spec
+++ b/selinux-policy.spec
@@ -599,7 +599,7 @@ fi
 exit 0
 
 
-%triggerin -- pcre
+%triggerin -- pcre2
 %{_sbindir}/selinuxenabled && %{_sbindir}/semodule -nB
 exit 0

Comment 11 errata-xmlrpc 2022-11-15 11:13:52 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (selinux-policy bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:8283