[libvirt] [PATCH 2/2] conf: Don't always require security/@model

Eric Blake eblake at redhat.com
Fri Aug 24 14:07:21 UTC 2012


On 08/24/2012 07:15 AM, Michal Privoznik wrote:
> Only parse model, if static labelling, or
> a base label is set, or doing active XML.
> ---
>  src/conf/domain_conf.c |   39 ++++++++++++++++++++++++---------------
>  1 files changed, 24 insertions(+), 15 deletions(-)

I can confirm that this solves a regression where a running domain under
rc0 fails to list when reloading rc1.

> @@ -3225,11 +3233,7 @@ virSecurityDeviceLabelDefParseXML(virDomainDiskDefPtr def,
>      for (i = 0; i < n; i++) {
>          /* get model associated to this override */
>          model = virXMLPropString(list[i], "model");
> -        if (model == NULL) {
> -            virReportError(VIR_ERR_XML_ERROR, "%s",
> -                           _("invalid security model"));
> -            goto error;
> -        } else {
> +        if (model) {
>              /* find the security label that it's being overriden */

As long as you're here, s/overriden/overridden/

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120824/6ac02178/attachment-0001.sig>


More information about the libvir-list mailing list