提交 14cf67e6 编写于 作者: D Daniel P. Berrange 提交者: Cole Robinson

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: NDaniel P. Berrange <berrange@redhat.com>
(cherry picked from commit 0b62c073)
上级 e37286da
......@@ -1242,12 +1242,11 @@ qemuConnectMonitor(struct qemud_driver *driver, virDomainObjPtr vm)
virDomainObjLock(vm);
priv->monStart = 0;
if (mon == NULL)
if (mon == NULL) {
virObjectUnref(vm);
if (!virDomainObjIsActive(vm)) {
} else if (!virDomainObjIsActive(vm)) {
qemuMonitorClose(mon);
goto error;
mon = NULL;
}
priv->mon = mon;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册