Bug 1842867
| Summary: | rpm spec to be fixed to pass the rpm verify validation for selinux-policy-targeted | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Rajesh Dulhani <rdulhani> |
| Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> |
| Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 8.2 | CC: | apeetham, lvrabec, mmalik, peter.vreman, plautrba, ssekidde, tscherf, vmojzis |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | 8.4 | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| 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.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-05-18 14:57:37 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
Rajesh Dulhani
2020-06-02 09:22:33 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? 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 |