提交 03c3c0c8 编写于 作者: P Peter Krempa

CVE-2015-0236: qemu: Check ACLs when dumping security info from save image

The ACL check didn't check the VIR_DOMAIN_XML_SECURE flag and the
appropriate permission for it.
上级 860522d2
...@@ -6031,7 +6031,7 @@ qemuDomainSaveImageGetXMLDesc(virConnectPtr conn, const char *path, ...@@ -6031,7 +6031,7 @@ qemuDomainSaveImageGetXMLDesc(virConnectPtr conn, const char *path,
if (fd < 0) if (fd < 0)
goto cleanup; goto cleanup;
if (virDomainSaveImageGetXMLDescEnsureACL(conn, def) < 0) if (virDomainSaveImageGetXMLDescEnsureACL(conn, def, flags) < 0)
goto cleanup; goto cleanup;
ret = qemuDomainDefFormatXML(driver, def, flags); ret = qemuDomainDefFormatXML(driver, def, flags);
......
...@@ -4819,6 +4819,7 @@ enum remote_procedure { ...@@ -4819,6 +4819,7 @@ enum remote_procedure {
* @generate: both * @generate: both
* @priority: high * @priority: high
* @acl: domain:read * @acl: domain:read
* @acl: domain:read_secure:VIR_DOMAIN_XML_SECURE
*/ */
REMOTE_PROC_DOMAIN_SAVE_IMAGE_GET_XML_DESC = 235, REMOTE_PROC_DOMAIN_SAVE_IMAGE_GET_XML_DESC = 235,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册