Bug 2012250
| Summary: | SELinux: denies Pulp when attempting to access a remote repo on a non-standard HTTP port | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Stephen Wadeley <swadeley> | 
| Component: | Documentation | Assignee: | Nobody <nobody> | 
| Documentation sub component: | default | QA Contact: | |
| Status: | CLOSED WONTFIX | Docs Contact: | |
| Severity: | medium | ||
| Priority: | unspecified | CC: | mdepaulo, ttereshc | 
| Version: | 6.10.0 | ||
| Target Milestone: | Unspecified | ||
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-06-13 00:19:10 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: | |||
| Similar report https://bugzilla.redhat.com/show_bug.cgi?id=2018263 So this will be addressed via a docs update. This alert occurs when pulp connects to a webserver (remote repo) running on a non-standard port. The only standard ports are 80, 81, 443, 488, 8008, 8009, 8443, 9000. The port in this example is 50123, which the Satellite tests run on. The docs will instruct users on how to label the port. @swadeley and I have been talking about this, and I prepared upstream instructions: https://github.com/pulp/pulpcore-selinux#adding-support-for-remote-repos-running-on-custom-ports Hello we can close this one as NOTABUG or change its component. I must make PR against Docs and against our test setup to allow that port. I can try do the docs one today. Thank you (In reply to Stephen Wadeley from comment #4) > Hello > > we can close this one as NOTABUG or change its component. > > I must make PR against Docs Add Config SELinux for Repos on Custom Ports #797 https://github.com/theforeman/foreman-documentation/pull/797 @mdepaulo Please review that docs PR. Thank yuo Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in a month. This message may be a repeat of a previous update and the bug is again being considered to be closed. If you have any concerns about this, please contact your Red Hat Account team. Thank you. Thank you for your interest in Red Hat Satellite. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this feel free to contact your Red Hat Account Team. Thank you. | 
Description of problem: While testing for SELinux AVC errors on Sat6.10 snap 21, this error was seen: type=PROCTITLE msg=audit(1630052400.331:795): proctitle=2F7573722F62696E2F707974686F6E33002F7573722F62696E2F70756C70636F72652D776F726B6572 type=SYSCALL msg=audit(1630052400.331:795): arch=c000003e syscall=42 success=no exit=-115 a0=d a1=7ffe34183c20 a2=10 a3=2 items=0 ppid=1116 pid=18491 auid=4294967295 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=4294967295 comm="pulpcore-worker" exe="/usr/bin/python3.6" subj=system_u:system_r:pulpcore_t:s0 key=(null) type=AVC msg=audit(1630052400.331:795): avc: denied { name_connect } for pid=18491 comm="pulpcore-worker" dest=50123 scontext=system_u:system_r:pulpcore_t:s0 tcontext=system_u:object_r:ephemeral_port_t:s0 tclass=tcp_socket permissive=1 Version-Release number of selected component (if applicable): Sat6.10 snap 21 How reproducible: Steps to Reproduce: 1. get SatLab test VM 2. ausearch -m AVC,USER_AVC 3. Sync some repos 4. ausearch -m AVC,USER_AVC Actual results: type=AVC msg=audit(1630052400.331:795): avc: denied { name_connect } for pid=18491 comm="pulpcore-worker" dest=50123 scontext=system_u:system_r:pulpcore_t:s0 tcontext=system_u:object_r:ephemeral_port_t:s0 tclass=tcp_socket permissive=1 Expected results: No AVCs Additional info: Found while testing Bug 1991030 - SELinux alerts