RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1842867 - rpm spec to be fixed to pass the rpm verify validation for selinux-policy-targeted
Summary: rpm spec to be fixed to pass the rpm verify validation for selinux-policy-tar...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: selinux-policy
Version: 8.2
Hardware: Unspecified
OS: Linux
high
medium
Target Milestone: rc
: 8.4
Assignee: Zdenek Pytela
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-02 09:22 UTC by Rajesh Dulhani
Modified: 2024-06-13 22:40 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: In the selinux active store (/var/lib/selinux), there are a few files which can change on an update made to the SELinux policy, but they were not marked to skip some of the rpm verification subtests. Consequence: The "rpm -V selinux-policy-targeted" (similar for the minimum, mls, sandbox subpackages) command can report some subtetst failures although the changes are expected. Fix: The specfile option %verify(not md5 size mtime) was added for each of the reported files. Result: rpm-verify does not report a failuer for those files any longer.
Clone Of:
Environment:
Last Closed: 2021-05-18 14:57:37 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Rajesh Dulhani 2020-06-02 09:22:33 UTC
Description of problem:

The output of rpm verify for selinux-policy-targeted has the files 

/var/lib/selinux/targeted/active/commit_num, 

/var/lib/selinux/targeted/active/policy.kern 

/var/lib/selinux/targeted/active/seusers always changes compared to the rpm:


-----------
$ sudo rpm -V selinux-policy-targeted
S.5....T.  c /etc/selinux/targeted/contexts/files/file_contexts.local
S.5....T.  c /etc/selinux/targeted/contexts/files/file_contexts.subs
..5....T.    /var/lib/selinux/targeted/active/commit_num
.......T.    /var/lib/selinux/targeted/active/file_contexts
.......T.    /var/lib/selinux/targeted/active/homedir_template
S.5....T.    /var/lib/selinux/targeted/active/policy.kern
S.5....T.    /var/lib/selinux/targeted/active/seusers
.......T.    /var/lib/selinux/targeted/active/users_extra
-----------

Can the rpm spec be fixed to pass the rpm verify validation?



Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:

rpm spec be fixed to pass the rpm verify validation for selinux-policy-targeted


Additional info:

Comment 4 Zdenek Pytela 2021-01-08 18:12:52 UTC
Vito,

The selinux-policy-base packages do not pass rpm-verify command after any single change to policy:

rhel84# rpm -V selinux-policy-targeted
..5....T.    /var/lib/selinux/targeted/active/commit_num
S.5....T.    /var/lib/selinux/targeted/active/file_contexts
.......T.    /var/lib/selinux/targeted/active/homedir_template
S.5....T.    /var/lib/selinux/targeted/active/policy.kern
.......T.    /var/lib/selinux/targeted/active/seusers
.......T.    /var/lib/selinux/targeted/active/users_extra

Is there anything we can do to improve users experience?

Comment 14 errata-xmlrpc 2021-05-18 14:57:37 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-2021:1639


Note You need to log in before you can comment on or make changes to this bug.