Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 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 "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". 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 "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-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 1095905

Summary: openstack-neutron does not function with selinux in enforcing mode
Product: Red Hat Enterprise Linux 7 Reporter: Lars Kellogg-Stedman <lars>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Milos Malik <mmalik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: lars, mmalik, rhallise
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-13 14:30: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:
Attachments:
Description Flags
output of "audit2allow -a" none

Description Lars Kellogg-Stedman 2014-05-08 19:29:37 UTC
Created attachment 893767 [details]
output of "audit2allow -a"

With selinux in enforcing mode, Neutron is largely inoperative under RHEL7.  Among other issues, Neutron is unable to create network namespaces:

  dhcp-agent.log:2014-05-08 15:25:30.493 1308 TRACE neutron.agent.dhcp_agent Stderr: 'Cannot not create namespace file "/var/run/netns/qdhcp-d5941284-28cf-4a3f-b6aa-844bcccee53b": Permission denied\n'


Attached to this bz is the output of running "audit2allow -a" on RHEL7 system with:

selinux-policy-targeted-3.12.1-153.el7.noarch
openstack-neutron-openvswitch-2014.1-14.el7ost.noarch
openstack-neutron-2014.1-14.el7ost.noarch
python-neutronclient-2.3.4-1.el7ost.noarch
python-neutron-2014.1-14.el7ost.noarch

The log shows that it's not just neutron affected by the policy, but that is the only service I've looked at it any detail.

Comment 2 Milos Malik 2014-05-12 08:39:26 UTC
We need the output from ausearch:

# ausearch -m avc -m user_avc -m selinux_err -i -ts today

Comment 4 Miroslav Grepl 2014-05-30 09:26:13 UTC
We have lot of fixes in the latest rhel7.0.z builds. Also file_t issue should be fixed by OpenStack folks.

Comment 5 Ryan Hallisey 2014-10-13 12:39:44 UTC
Hey Lars.  Can you attach your audit.log so I can look at the AVCs?  Also, do you have openstack-selinux installed?

Comment 6 Lars Kellogg-Stedman 2014-10-13 14:04:48 UTC
Hi Ryan,

This bz was opened in May...so I don't have those logs around any longer.  I suspect that at this point we close this one.