From 302fe95ffa1bc5f1c61c0beb31a1adfbc38c668e Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Wed, 4 Jan 2012 16:01:24 -0700 Subject: 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