Bug 856653

Summary: AVC denials starting OpenStack glance services
Product: [Fedora] Fedora Reporter: Pádraig Brady <pbrady>
Component: selinux-policy-targetedAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Ben Levenson <benl>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: akscram, alexander.sakhnov, apevec, asalkeld, bfilippov, dwalsh, jonathansteffan, markmc, matt_domsch, mlvov, p, rbryant, rkukura
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 801330 Environment:
Last Closed: 2012-12-20 15:31:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Pádraig Brady 2012-09-12 14:15:29 UTC
selinux-policy-targeted-3.10.0-146.fc17.noarch
openstack-glance-2012.2-0.4.f3.fc18.noarch

type=AVC msg=audit(1347442614.780:521): avc:  denied  { search } for
  pid=26111 comm="glance-api" name="mysql" dev="dm-1" ino=272120
  scontext=system_u:system_r:glance_api_t:s0
  tcontext=system_u:object_r:mysqld_db_t:s0 tclass=dir

With essex the glance-registry service needed access to mysql,
now with folsom we need to give access to glance-api also.

Workaround:
  setenforce 0; service openstack-glance-api restart; setenforce 1

Comment 1 Miroslav Grepl 2012-09-14 13:35:02 UTC
Added.

Comment 2 Fedora Update System 2012-09-26 04:51:03 UTC
selinux-policy-3.11.1-25.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-25.fc18

Comment 3 Fedora Update System 2012-09-26 21:18:26 UTC
Package selinux-policy-3.11.1-25.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.11.1-25.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-14807/selinux-policy-3.11.1-25.fc18
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2012-12-20 15:31:30 UTC
selinux-policy-3.11.1-25.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.