Merge "Set virt_use_execmem boolean if SELinux is enabled."

This commit is contained in:
Jenkins 2012-09-08 05:43:16 +00:00 committed by Gerrit Code Review
commit 59f4da37c4

View File

@ -1396,6 +1396,10 @@ if is_service_enabled n-cpu; then
if [ ! -e /dev/kvm ]; then
echo "WARNING: Switching to QEMU"
LIBVIRT_TYPE=qemu
if which selinuxenabled 2>&1 > /dev/null && selinuxenabled; then
# https://bugzilla.redhat.com/show_bug.cgi?id=753589
sudo setsebool virt_use_execmem on
fi
fi
fi