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-clientAssignee: Alba Hita <ahitacat>
Status: CLOSED ERRATA QA Contact: Pavol Kotvan <pakotvan>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.2CC: ahitacat, cmarinea, fjansen, pakotvan, stomsa
Target Milestone: rcKeywords: 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    

Description Link Dupont 2022-11-09 22:06:19 UTC
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

Comment 8 errata-xmlrpc 2023-05-09 07:37: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 (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