Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2258109 - wrong labeling of pulpcore-api and pulpcore-content processes can lead to SELinux denials
Summary: wrong labeling of pulpcore-api and pulpcore-content processes can lead to SEL...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: 6.15.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 6.15.0
Assignee: satellite6-bugs
QA Contact: Griffin Sullivan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-01-12 16:42 UTC by Evgeni Golov
Modified: 2024-04-23 17:17 UTC (History)
3 users (show)

Fixed In Version: pulpcore-selinux-2.0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-04-23 17:17:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github pulp pulpcore-selinux pull 71 0 None Merged correctly label pulpcore-(api|content) binaries 2024-01-12 16:42:09 UTC
Red Hat Issue Tracker SAT-22466 0 None None None 2024-01-12 16:45:32 UTC
Red Hat Product Errata RHSA-2024:2010 0 None None None 2024-04-23 17:17:14 UTC

Description Evgeni Golov 2024-01-12 16:42:09 UTC
Description of problem:
since pulpcore 3.33 there are new binaries to start pulpcore services, but those binaries were not properly labeled with pulpcore_server_exec_t like their old counterpart gunicorn
without that label, the services run as unconfined_service_t, which results in errors like httpd not being able to connect to them

The denial I am seeing is btw:

time->Wed Jan 10 08:24:36 2024
type=PROCTITLE msg=audit(1704875076.749:5217): proctitle=2F7573722F7362696E2F6874747064002D44464F524547524F554E44
type=SYSCALL msg=audit(1704875076.749:5217): arch=c000003e syscall=42 success=no exit=-13 a0=17 a1=7f6844045130 a2=18 a3=7f680c007060 items=0 ppid=57049 pid=57050 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm="httpd" exe="/usr/sbin/httpd" subj=system_u:system_r:httpd_t:s0 key=(null)
type=AVC msg=audit(1704875076.749:5217): avc:  denied  { connectto } for  pid=57050 comm="httpd" path="/run/pulpcore-api.sock" scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:system_r:unconfined_service_t:s0 tclass=unix_stream_socket permissive=0

note that tcontext is unconfined_service_t which is wrong :)

Version-Release number of selected component (if applicable):
Satellite 6.15

How reproducible:
100%

Steps to Reproduce:
1. ps auxZ | grep pulpcore-

Actual results:
pulpcore-api and pulpcore-content services are running as unconfined_service_t


Expected results:
pulpcore-api and pulpcore-content services are running as pulpcore_server_t

Additional info:

Comment 2 Griffin Sullivan 2024-01-18 14:08:13 UTC
Verified on 6.15.0 snap 7

pulpcore-api and pulpcore-content services are running as pulpcore_server_t

Steps to Reproduce:
1. ps auxZ | grep pulpcore-

Results: 

All pulpcore-api and pulpcore-content services are running as pulpcore_server_t

Comment 6 errata-xmlrpc 2024-04-23 17:17:12 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.15.0 release), 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-2024:2010


Note You need to log in before you can comment on or make changes to this bug.