| Summary: | AVC denials starting OpenStack glance services | |||
|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mark McLoughlin <markmc> | |
| Component: | selinux-policy-targeted | Assignee: | Miroslav Grepl <mgrepl> | |
| Status: | CLOSED ERRATA | QA Contact: | Ben Levenson <benl> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 17 | CC: | akscram, alexander.sakhnov, apevec, asalkeld, bfilippov, dwalsh, jonathansteffan, markmc, matt_domsch, mlvov, pbrady, 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: | ||||
| : | 821038 856653 (view as bug list) | Environment: | ||
| Last Closed: | 2012-05-28 01:20:57 UTC | Type: | --- | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Bug Depends On: | ||||
| Bug Blocks: | 821038 | |||
|
Description
Mark McLoughlin
2012-03-08 10:19:36 UTC
Lumping this in here for the moment. If using keystone, then `glance index` will fail with EACCES because of:
type=AVC msg=audit(1331211282.871:197): avc: denied { name_connect } for pid=2515 comm="glance-api" dest=35357 scontext=system_u:system_r:glance_api_t:s0 tcontext=system_u:object_r:ephemeral_port_t:s0 tclass=tcp_socket
Great, thanks for testing. I am interested in
avc: denied { execute } for pid=30657 comm="glance-registry"
path=2F7661722F6C69622F676C616E63652F666669364F46767A72202864656C6574656429
dev="dm-1" ino=2890163 scontext=system_u:system_r:glance_registry_t:s0
avc: denied { execute } for pid=30657 comm="glance-registry"
path=2F746D702F666669687562354257202864656C6574656429 dev="dm-1" ino=2632903
scontext=system_u:system_r:glance_registry_t:s0
tcontext=system_u:object_r:glance_registry_tmp_t:s0 tclass=file
Do you know why this is needed? What is exactly executed?
The openstack should be using /var/run rather then /tmp, and if it needs /tmp then it should use PrivateTmp within systemd unit file. PrivateTmp is already set I think: http://pkgs.fedoraproject.org/gitweb/?p=openstack-glance.git;a=commitdiff;h=422d54bc9 I still would prefer you to move to /run or /var/lib selinux-policy-3.10.0-118.fc17.noarch
openstack-glance-2012.1-4.fc17.noarch
We switched to mysql database instead of sqlite previously and I get now:
avc: denied { search } for pid=15129 comm="glance-registry" name="mysql" dev="dm-1" ino=395088 scontext=system_u:system_r:glance_registry_t:s0 tcontext=system_u:object_r:mysqld_db_t:s0 tclass=dir
Fixed in selinux-policy-3.10.0-120.fc17.noarch selinux-policy-3.10.0-124.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-124.fc17 Package selinux-policy-3.10.0-125.fc17: * should fix your issue, * was pushed to the Fedora 17 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.10.0-125.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-7953/selinux-policy-3.10.0-125.fc17 then log in and leave karma (feedback). selinux-policy-3.10.0-125.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report. |