If SELinux is enabled, this boolean is required to be able to launch VMs using qemu.
Set the boolean if we're switching the libvirt_type to 'qemu' and SELinux is enabled.
Change-Id: Ieead35aae94c9fa86df1f4829584f71c97dcbeb8
| ... | ... |
@@ -1345,6 +1345,10 @@ if is_service_enabled n-cpu; then |
| 1345 | 1345 |
if [ ! -e /dev/kvm ]; then |
| 1346 | 1346 |
echo "WARNING: Switching to QEMU" |
| 1347 | 1347 |
LIBVIRT_TYPE=qemu |
| 1348 |
+ if which selinuxenabled 2>&1 > /dev/null && selinuxenabled; then |
|
| 1349 |
+ # https://bugzilla.redhat.com/show_bug.cgi?id=753589 |
|
| 1350 |
+ sudo setsebool virt_use_execmem on |
|
| 1351 |
+ fi |
|
| 1348 | 1352 |
fi |
| 1349 | 1353 |
fi |
| 1350 | 1354 |
|