Bug 832414

Summary: openstack-glance-2012.1-4.fc17
Product: [Fedora] Fedora Reporter: Pádraig Brady <p>
Component: selinux-policy-targetedAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Ben Levenson <benl>
Severity: high Docs Contact:
Priority: unspecified    
Version: 17CC: breu, dwalsh, eglynn, pbrady
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 00:30:06 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 Pádraig Brady 2012-06-15 11:14:39 UTC
There is a denial connecting to mysqld:

type=AVC msg=audit(1339706457.635:1431): avc:  denied  { name_connect } for  pid=31822 comm="glance-registry" dest=3306 scontext=system_u:system_r:glance_registry_t:s0 tcontext=system_u:object_r:mysqld_port_t:s0 tclass=tcp_socket

Note mysql is on localhost.
Apparently this was addressed in selinux-policy-targeted-3.10.0-120.fc17.noarch,
but that only seemed to consider the unix socket connection, as it added:

  mysql_stream_connect(glance_registry_t)

It seems from the above that this is also needed?

  allow glance_registry_t mysqld_port_t:tcp_socket name_connect;

Comment 1 Daniel Walsh 2012-06-15 20:14:45 UTC
I can add the ability to connect to the mysql port, do you know of any other ports it needs to connect to.

Comment 2 Pádraig Brady 2012-06-16 00:08:31 UTC
I don't know of any others

Comment 3 Daniel Walsh 2012-06-18 20:41:34 UTC
Fixed in selinux-policy-3.10.0-132.fc17

Comment 4 Fedora Update System 2012-06-19 07:59:50 UTC
selinux-policy-3.10.0-132.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-132.fc17

Comment 5 Fedora Update System 2012-06-20 00:30:06 UTC
selinux-policy-3.10.0-132.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2012-07-19 09:18:11 UTC
selinux-policy-3.10.0-132.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.