Bug 2141443
| Summary: | Set insights_client_t SELinux module to permissive mode when installing | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Link Dupont <link> | |
| Component: | insights-client | Assignee: | Alba Hita <ahitacat> | |
| Status: | CLOSED ERRATA | QA Contact: | Pavol Kotvan <pakotvan> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 9.2 | CC: | ahitacat, cmarinea, fjansen, pakotvan, stomsa | |
| Target Milestone: | rc | Keywords: | Triaged, ZStream | |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
|
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | insights-client-3.1.7-12.el9 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 2141444 2143307 2143308 (view as bug list) | Environment: | ||
| Last Closed: | 2023-05-09 07:37: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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 2143307, 2143308 | |||
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 (insights-client 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-2023:2245 |
The insights-client RPM needs to run 'semanage permissive --add insights_client_t' in its %post scriptlet. The recommended snippet is to add the following line as the first line in the %post scriptlet: %{_sbindir}/semanage permissive -a insights_client_t || true This will require a new package, so add 'Requires(post): policycoreutils-python-utils' to the list of package requirements. The permissive mode needs to be deleted when the package is uninstalled, so add the following to the end of %postun: if [ $1 -eq 0 ]; then %{_sbindir}/semanage permissive -d insights_client_t || true fi