Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 847027

Summary: browsing to the headpin page fails due to selinux avc: denied comm="httpd" dest=5000 (dest=5001) scontext=system_u:system_r:httpd_t:s0
Product: Red Hat Satellite Reporter: Eric Sammons <esammons>
Component: SELinuxAssignee: Lukas Zapletal <lzap>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.0.0CC: lzap
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 840470 Environment:
Last Closed: 2012-08-15 10:21:16 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: 840470    
Bug Blocks: 816564    

Description Eric Sammons 2012-08-09 13:41:19 UTC
+++ This bug was initially created as a clone of Bug #840470 +++

Description of problem:
Installing a new headpin with selinux enabled will lead to headpin being inaccessible.

Version-Release number of selected component (if applicable):
katello-headpin-0.2.24-1
Fedora-16


Steps to Reproduce:
1. Install F-16 @Base
   a. getenforce should return enforcing.
2. Install katello-headpin-all (0.2.24-1)
3. katello-configure --deployment=headpin
4. navigate your web browser to https://headpin.fqdn.com/headpin
  
Actual results:
Service Temporarily Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Apache/2.2.22 (Fedora) Server at brainslug.usersys.redhat.com Port 443

---- /var/log/audit/audit.log
type=AVC msg=audit(1342443488.476:6102): avc:  denied  { name_connect } for  pid=5951 comm="httpd" dest=5000 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:commplex_port_t:s0 tclass=tcp_socket
type=SYSCALL msg=audit(1342443488.476:6102): arch=c000003e syscall=42 success=no exit=-13 a0=12 a1=7fcbef1bd928 a2=10 a3=7fff47624c8c items=0 ppid=5691 pid=5951 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(1342443488.476:6103): avc:  denied  { name_connect } for  pid=5951 comm="httpd" dest=5001 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:commplex_port_t:s0 tclass=tcp_socket
type=SYSCALL msg=audit(1342443488.476:6103): arch=c000003e syscall=42 success=no exit=-13 a0=12 a1=7fcbef08a438 a2=10 a3=7fff47624c8c items=0 ppid=5691 pid=5951 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)


Expected results:
katello login page

Comment 1 Lukas Zapletal 2012-08-15 10:14:26 UTC
Please report on "SELinux" component, taking.

Comment 2 Lukas Zapletal 2012-08-15 10:21:16 UTC
Eric there is a bug in Fedora 16 SELinux base package that is incompatible with Katello builds created in Koji (since we build on RHEL now). Before installing Katello please apply all Fedora 16 updates (or at least or selinux relevant).

This is docummented in our installation guide as we cannot do much about it. Fedora 17+ is okay, RHEL 6 too.

You can check if you are affected with this bug by checking if katello selinux module is loaded. If not, its the bug I described above:

    semodule -l | grep katello pulp

Please re-open if it still does not work with updated selinux.