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 };
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 ***