提交 4d6ed1bf 编写于 作者: D Daniel P. Berrange

Don't use VIR_DOMAIN_XML_SECURE when parsing XML

The VIR_DOMAIN_XML_SECURE flag only has effect on the formatting
of XML so should not be passed to virDomainDefParseNode
上级 4d2ebc71
...@@ -287,8 +287,7 @@ virDomainSnapshotDefParse(xmlXPathContextPtr ctxt, ...@@ -287,8 +287,7 @@ virDomainSnapshotDefParse(xmlXPathContextPtr ctxt,
def->dom = virDomainDefParseNode(ctxt->node->doc, domainNode, def->dom = virDomainDefParseNode(ctxt->node->doc, domainNode,
caps, xmlopt, caps, xmlopt,
expectedVirtTypes, expectedVirtTypes,
(VIR_DOMAIN_XML_INACTIVE | VIR_DOMAIN_XML_INACTIVE);
VIR_DOMAIN_XML_SECURE));
if (!def->dom) if (!def->dom)
goto cleanup; goto cleanup;
} else { } else {
......
...@@ -3558,7 +3558,7 @@ phypDomainCreateXML(virConnectPtr conn, ...@@ -3558,7 +3558,7 @@ phypDomainCreateXML(virConnectPtr conn,
if (!(def = virDomainDefParseString(xml, phyp_driver->caps, if (!(def = virDomainDefParseString(xml, phyp_driver->caps,
phyp_driver->xmlopt, phyp_driver->xmlopt,
1 << VIR_DOMAIN_VIRT_PHYP, 1 << VIR_DOMAIN_VIRT_PHYP,
VIR_DOMAIN_XML_SECURE))) 0)))
goto err; goto err;
/* checking if this name already exists on this system */ /* checking if this name already exists on this system */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册