]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Fix parsing of seclabels without model
authorMarcelo Cerri <mhcerri@linux.vnet.ibm.com>
Fri, 31 Aug 2012 11:40:40 +0000 (13:40 +0200)
committerDaniel Veillard <veillard@redhat.com>
Fri, 31 Aug 2012 12:14:41 +0000 (20:14 +0800)
commit86e205a24fbfaec75df7ffedbb6418d9ed9dbd1c
tree92f2dadcaed87c0965e0de5cdbc5bf81e4a9e696
parent641d406d27e060e47670332ba3754806e9366ac5
conf: Fix parsing of seclabels without model

With this patch libvirt tries to assign a model to a single seclabel
when model is missing. Libvirt will look up at host's capabilities and
assign the first model to seclabel.

This patch fixes:

1. The problem with existing guests that have a seclabel defined in its XML.
2. A XML parse error when a guest is restored.

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
src/conf/domain_conf.c