Bug 1177377
Summary: | Satellite 6.1 does not work with http proxy due to SELinux denials | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Dave Sullivan <dsulliva> |
Component: | Installation | Assignee: | Lukas Zapletal <lzap> |
Status: | CLOSED ERRATA | QA Contact: | Elyézer Rezende <erezende> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.0.6 | CC: | bbuckingham, chrobert, cwelton, erezende, jswensso, kshirsal, lzap, m.ketchion, mmccune, sauchter, swadeley |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause:
Satellite 6 SELinux policy prevents from connecting to unknown ports.
Consequence:
Since there are no SELinux booleans to add rules for communication through http(s) proxy, there is no way of configuring Satellite with such a proxy.
Fix:
Depending on the target http(s) proxy port (usually 3128 or 8181) assign the required port to the foreman_proxy_port_t SELinux port type. Depending on the port number it must be either added (-a) or modified (-m).
semanage port -a -t foreman_proxy_port_t -p tcp 8181
semanage port -m -t foreman_proxy_port_t -p tcp 3128
No restart is needed, Satellite will be instantly allowed to do connections.
Result:
SELinux will allow communication on desired TCP ports.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2015-08-12 05:21:04 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
Dave Sullivan
2014-12-26 19:42:55 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release. I agree we should set this. Since Foreman does not need HTTP proxies and we don't provide any options, this is katello-installer task to set the SELinux appropriately. Resetting the component to the Installer. The goal is really only to allow HTTP proxy destination port in SELinux in Puppet. Not sure about the priority tho. Added doc text for Release Notes. *** Bug 1191299 has been marked as a duplicate of this bug. *** If you re-use a port which is already assigned in selinux policy (such as 8080) then you need to "modify" rather than add the new port # semanage port -m -t foreman_proxy_port_t -p tcp 8080 Good point, reworded the doco text. Verified on: Satellite-6.1.0-RHEL-7-20150331.1 Steps to verify: 1. Installed Satellite pointing to an external squid proxy on port 3128. 2. Imported a manifest 3. Enabled "Red Hat Enterprise Virtualization Agents for RHEL 6 Server RPMs x86_64 6Server" Red Hat repository and synced it. 4. Watched audit.log for AVC and no AVC was emitted during the process: # tail -f /var/log/audit/audit.log | grep AVC ^C # This bug is slated to be released with Satellite 6.1. 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, 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-2015:1592 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |