Previously, SELinux prevented the nova scheduler from searching directories labeled 'cert_t', resulting in SELinux causing Compute to fail.
With this update, an 'allow' rule has been created to give the nova scheduler permission to search the 'cert_t' directories. As a result, Compute service functions normally.
DescriptionGilles Dubreuil
2014-10-07 05:39:46 UTC
Created attachment 944445[details]
sealert
Using:
selinux-policy-3.12.1-153.el7_0.11.noarch
selinux-policy-targeted-3.12.1-153.el7_0.11.noarch
openstack-nova-scheduler-2014.1.2-1.el7ost.noarch
openstack-selinux-0.5.16-2.el7ost.noarch
nova-scheduler doesn't start because of SELinux missing AVC indicating:
"SELinux is preventing /usr/bin/python2.7 from search access on the directory"
Please see attached for "sealert -a /var/log/audit/audit.log" full log.
Created attachment 944447[details]
semodule
Workaround:
Using attached nova-scheduler-python-search policy files,
run
semodule -i nova-scheduler-python-search.pp
(In reply to Ryan Hallisey from comment #3)
> Looks good Gilles. I'll add to openstack-selinux.
>
> allow nova_scheduler_t cert_t:dir search;
Which openstack-selinux version includes that?
verified on the latest puddle using nova regression:
# rpm -qa |grep openstack-selinux
openstack-selinux-0.6.27-1.el7ost.noarch
# rpm -qa |grep sched
openstack-nova-scheduler-2014.2.2-19.el7ost.noarch
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHBA-2015-0825.html
Created attachment 944445 [details] sealert Using: selinux-policy-3.12.1-153.el7_0.11.noarch selinux-policy-targeted-3.12.1-153.el7_0.11.noarch openstack-nova-scheduler-2014.1.2-1.el7ost.noarch openstack-selinux-0.5.16-2.el7ost.noarch nova-scheduler doesn't start because of SELinux missing AVC indicating: "SELinux is preventing /usr/bin/python2.7 from search access on the directory" Please see attached for "sealert -a /var/log/audit/audit.log" full log.