Bug 1757857
| Summary: | rhel-system-roles should not reload the SELinux policy if its not changed | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Ron van der Wees <rvdwees> | |
| Component: | rhel-system-roles | Assignee: | Petr Lautrbach <plautrba> | |
| Status: | CLOSED ERRATA | QA Contact: | Jakub Haruda <jharuda> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 7.7 | CC: | anrussel, b.prins, djez, jharuda, jreznik, lvrabec, nhosoi, rmeggins, vcrhonek | |
| Target Milestone: | rc | Keywords: | Extras, ZStream | |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
|
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | role:selinux | |||
| Fixed In Version: | rhel-system-roles-1.7.3-2.el7_9 | Doc Type: | Bug Fix | |
| Doc Text: |
Cause: The selinux role was not checking to see if any changes were actually applied before reloading selinux policy.
Consequence: The selinux policy was being reloaded unnecessarily. Policy reload is expensive.
Fix: Use ansible handlers and conditionals so that the policy is only reloaded if it is changed.
Result: selinux role runs much faster if no policy needs to be reloaded.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 1757869 (view as bug list) | Environment: | ||
| Last Closed: | 2022-02-22 18:56:17 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1757869 | |||
|
Description
Ron van der Wees
2019-10-02 15:06:41 UTC
This may also apply to RHEL8 Indeed, this is a problem, we fixed some of those issues in https://github.com/linux-system-roles/selinux/pull/38, but some remain. Concerning RHEL 8, I will create a clone. Hi @djez, could you give your qa_ack+? 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 (rhel-system-roles 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:0644 |