mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-13 23:22:01 +00:00
Don't skip over socket label cleanup
If QEMU quits immediately after we opened the monitor it was possible we would skip the clearing of the SELinux process socket context Signed-off-by: Daniel P. Berrange <berrange@redhat.com> (cherry picked from commit 0b62c0736a2a365b9c682d58fa9f66eaea6ec7e4)
This commit is contained in:
parent
e37286dadf
commit
14cf67e6fb
@ -1242,12 +1242,11 @@ qemuConnectMonitor(struct qemud_driver *driver, virDomainObjPtr vm)
|
|||||||
virDomainObjLock(vm);
|
virDomainObjLock(vm);
|
||||||
priv->monStart = 0;
|
priv->monStart = 0;
|
||||||
|
|
||||||
if (mon == NULL)
|
if (mon == NULL) {
|
||||||
virObjectUnref(vm);
|
virObjectUnref(vm);
|
||||||
|
} else if (!virDomainObjIsActive(vm)) {
|
||||||
if (!virDomainObjIsActive(vm)) {
|
|
||||||
qemuMonitorClose(mon);
|
qemuMonitorClose(mon);
|
||||||
goto error;
|
mon = NULL;
|
||||||
}
|
}
|
||||||
priv->mon = mon;
|
priv->mon = mon;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user