From: Eric Blake Date: Wed, 4 Jan 2012 23:01:24 +0000 (-0700) Subject: seclabel: fix regression in libvirtd restart X-Git-Tag: v0.9.9-rc2^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=302fe95ffa1bc5f1c61c0beb31a1adfbc38c668e;p=thirdparty%2Flibvirt.git seclabel: fix regression in libvirtd restart Commit b434329 has a logic bug: seclabel overrides don't set def->type, but the default value is 0 (aka static). Restarting libvirtd would thus reject the XML for any domain with an override of (which happens quite easily if a disk image lives on NFS), with a message: 2012-01-04 22:29:40.949+0000: 6769: error : virSecurityLabelDefParseXMLHelper:2593 : XML error: security label is missing Fix the logic to never read from an override's def->type, and to allow a missing