Bug 2218932

Summary: SELinux is preventing pulpcore-worker from read access on the key labeled pulpcore_server_t
Product: Red Hat Satellite Reporter: Ganesh Payelkar <gpayelka>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Shweta Singh <shwsingh>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.13.0CC: egolov, jcastran, mdepaulo, osousa, rdulhani, rlavi, saydas, shwsingh
Target Milestone: 6.14.0Keywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: pulpcore-selinux-1.3.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2238371 (view as bug list) Environment:
Last Closed: 2023-11-08 14:19:54 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 Ganesh Payelkar 2023-06-30 15:53:10 UTC
Description of problem:

SELinux is preventing pulpcore-worker from read access on the key labeled pulpcore_server_t

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

How reproducible:
New installation of 6.13

Steps to Reproduce:

 • synchronize the RPM-package repositories
 • publish and promote the CVs and CCVs

Actual results: 

SELinux is preventing pulpcore-worker from read access on the key labeled pulpcore_server_t.#012#012*****  Plugin catchall (100. confidence) suggests   **************************#012#012If you believe that pulpcore-worker should be allowed read access on key labeled pulpcore_server_t by default.#012Then you should report this as a bug.#012You can generate a local policy module to allow this access.#012Do#012allow this access for now by executing:#012# ausearch -c 'pulpcore-worker' --raw | audit2allow -M my-pulpcoreworker#012# semodule -X 300 -i my-pulpcoreworker.pp#012

SELinux is preventing /usr/bin/python3.9 from view access on the key labeled pulpcore_server_t.#012#012*****  Plugin catchall (100. confidence) suggests   **************************#012#012If you believe that python3.9 should be allowed view access on key labeled pulpcore_server_t by default.#012Then you should report this as a bug.#012You can generate a local policy module to allow this access.#012Do#012allow this access for now by executing:#012# ausearch -c 'pulpcore-worker' --raw | audit2allow -M my-pulpcoreworker#012# semodule -X 300 -i my-pulpcoreworker.pp#012


Expected results:

Proper Functioning of Satellite 6 Components with SELinux Context

Additional info:

 - SELinux is preventing pulpcore-worker from read access on the key labeled pulpcore_server_t.
 - SELinux is preventing /usr/bin/python3.9 from view access on the key labeled pulpcore_server_t.

Comment 3 Mike DePaulo 2023-06-30 20:44:18 UTC
I released 1.3.3 with the fix:
https://github.com/pulp/pulpcore-selinux/releases/tag/1.3.3

Comment 7 Adam Ruzicka 2023-07-18 17:16:47 UTC
*** Bug 2151664 has been marked as a duplicate of this bug. ***

Comment 11 errata-xmlrpc 2023-11-08 14:19:54 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 (Important: Satellite 6.14 security and bug fix 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/RHSA-2023:6818