Bug 1402926 - openstack-selinux-0.7.12-1 breaks running keystone behind httpd
Summary: openstack-selinux-0.7.12-1 breaks running keystone behind httpd
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-selinux
Version: 11.0 (Ocata)
Hardware: All
OS: Linux
unspecified
high
Target Milestone: z1
: 10.0 (Newton)
Assignee: Ryan Hallisey
QA Contact: Udi Shkalim
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-08 16:17 UTC by Alex Schultz
Modified: 2017-02-01 14:36 UTC (History)
9 users (show)

Fixed In Version: openstack-selinux-0.7.13-3.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-02-01 14:36:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0233 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 10 Bug Fix Advisory 2017-02-01 19:35:06 UTC

Description Alex Schultz 2016-12-08 16:17:46 UTC
Description of problem:
With openstack-selinux-0.7.12-1.el7.noarch installed, httpd cannot listen to port 5000 to run keystone so it fails to start. downgrading to openstack-selinux-0.7.4-2.el7.noarch allows httpd to start.

Version-Release number of selected component (if applicable):
openstack-selinux-0.7.4-2.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1. install httpd, openstack-selinux-0.7.12-1
2. configure httpd to listen on port 5000
3. attempt to start httpd

Actual results:
httpd fails to start

Expected results:
httpd should be able to listen on  port 5000

Additional info:

Comment 1 Alex Schultz 2016-12-08 16:21:36 UTC
type=AVC msg=audit(1481210263.956:2156): avc:  denied  { name_bind } for  pid=19937 comm="httpd" src=5000 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:commplex_main_port_t:s0 tclass=tcp_socket

Comment 2 Javier Peña 2016-12-09 10:19:34 UTC
openstack-selinux-0.7.12-1 seems to depend on RHEL 7.3 bits.

I have found a similar issue with Packstack on CentOS 7.2, and it was fixed by updating selinux-policy to version 3.13.1-102 (using the CentOS CR repository).

Comment 3 Alan Pevec 2016-12-09 10:43:54 UTC
Please push upstream to https://github.com/redhat-openstack/openstack-selinux/commits/el7-rpm (which is now very out of sync) or let know and I'll do the specfile sync.

Comment 9 errata-xmlrpc 2017-02-01 14:36:42 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, 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://rhn.redhat.com/errata/RHBA-2017-0233.html


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