Bug 1139771
| Summary: | openstack-nova-api in juno requires additional selinux permissions | ||
|---|---|---|---|
| Product: | [Community] RDO | Reporter: | Lars Kellogg-Stedman <lars> |
| Component: | openstack-selinux | Assignee: | Lon Hohberger <lhh> |
| Status: | CLOSED DUPLICATE | QA Contact: | Ofer Blaut <oblaut> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | danielfr, Jan.van.Eldik, lobo, ndipanov, rbryant, whayutin, yeylon |
| Target Milestone: | GA | ||
| Target Release: | Juno | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-10-02 14:54:59 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: | |||
Same problem on CentOS 7. Tried the workaround (https://openstack.redhat.com/Workarounds#Packstack_fails.3B_unable_to_start_nova-api) but didn't fix the problem. I get this error: http://pastebin.com/0mzjJ39c OS: CentOS7 selinux: enforcing Selinux to permessive fixes the issue though. Same problem in RHEL7. The following SELinux module works for me:
module nova_allow_tmpfs 1.0;
require {
type tmpfs_t;
type nova_api_t;
class filesystem getattr;
class dir { search write add_name remove_name } ;
class file { create read write open link unlink getattr } ;
}
#============= nova_api_t ==============
allow nova_api_t tmpfs_t:filesystem getattr;
allow nova_api_t tmpfs_t:dir { search write add_name remove_name } ;
allow nova_api_t tmpfs_t:file { create read write open link unlink getattr } ;
Hi Javier, just to confirm that your module works on my CentOS7 box as well. *** This bug has been marked as a duplicate of bug 1144139 *** |
Description of problem: Starting openstack-nova-api.service after an upgrade from icehouse (on F20) results in: type=AVC msg=audit(1410275797.295:146000): avc: denied { getattr } for pid=4807 comm="nova-api" name="/" dev="tmpfs" ino=12293 scontext=system_u:system_r:nova_api_t:s0 tcontext=system_u:object_r:tmpfs_t:s0 tclass=filesystem type=AVC msg=audit(1410275797.295:146001): avc: denied { read write } for pid=4807 comm="nova-api" name="sem.9TjumMxpYmLgD5Jd3d4T32H_8eA=" dev="tmpfs" ino=10487844 scontext=system_u:system_r:nova_api_t:s0 tcontext=unconfined_u:object_r:user_tmpfs_t:s0 tclass=file type=AVC msg=audit(1410275797.295:146001): avc: denied { open } for pid=4807 comm="nova-api" path="/dev/shm/sem.9TjumMxpYmLgD5Jd3d4T32H_8eA=" dev="tmpfs" ino=10487844 scontext=system_u:system_r:nova_api_t:s0 tcontext=unconfined_u:object_r:user_tmpfs_t:s0 tclass=file Version-Release number of selected component (if applicable): openstack-nova-api-2014.2-0.2.b2.fc22.noarch Audit2allow -a yields: #============= nova_api_t ============== allow nova_api_t tmpfs_t:filesystem getattr; allow nova_api_t user_tmpfs_t:file { read write getattr open };