]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Don't use VIR_DOMAIN_XML_SECURE when parsing XML
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 18 Nov 2014 15:37:00 +0000 (15:37 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 13 Jan 2015 10:43:07 +0000 (10:43 +0000)
The VIR_DOMAIN_XML_SECURE flag only has effect on the formatting
of XML so should not be passed to virDomainDefParseNode

src/conf/snapshot_conf.c
src/phyp/phyp_driver.c

index 79cf1245b463fd6fc4bdfbcaaba6edc573abd34b..d9339c363ef063cc2e88da968e8fb663e8450e75 100644 (file)
@@ -287,8 +287,7 @@ virDomainSnapshotDefParse(xmlXPathContextPtr ctxt,
             def->dom = virDomainDefParseNode(ctxt->node->doc, domainNode,
                                              caps, xmlopt,
                                              expectedVirtTypes,
-                                             (VIR_DOMAIN_XML_INACTIVE |
-                                              VIR_DOMAIN_XML_SECURE));
+                                             VIR_DOMAIN_XML_INACTIVE);
             if (!def->dom)
                 goto cleanup;
         } else {
index 269d0303c900fcbcce9d4da15e2549e95a538339..71db7bdbc7b031f5ef343f812963ff8da4003a2e 100644 (file)
@@ -3558,7 +3558,7 @@ phypDomainCreateXML(virConnectPtr conn,
     if (!(def = virDomainDefParseString(xml, phyp_driver->caps,
                                         phyp_driver->xmlopt,
                                         1 << VIR_DOMAIN_VIRT_PHYP,
-                                        VIR_DOMAIN_XML_SECURE)))
+                                        0)))
         goto err;
 
     /* checking if this name already exists on this system */