]> xenbits.xensource.com Git - libvirt.git/commit
lxcCapsInit: Allocate primary security driver unconditionally
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 15 Jul 2013 13:36:04 +0000 (15:36 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 17 Jul 2013 10:36:45 +0000 (12:36 +0200)
commit37d96498c6a9c3030bfad7dfbd273af5fbdd1845
tree2420e1e8aaa564f8e02479300563ce4ce8ee0d95
parent53f3739afea44fc74b64cf18e6e35bc593bc7711
lxcCapsInit: Allocate primary security driver unconditionally

Currently, if the primary security driver is 'none', we skip
initializing caps->host.secModels. This means, later, when LXC domain
XML is parsed and <seclabel type='none'/> is found (see
virSecurityLabelDefsParseXML), the model name is not copied to the
seclabel. This leads to subsequent crash in virSecurityManagerGenLabel
where we call STREQ() over the model (note, that we are expecting model
to be !NULL).
src/lxc/lxc_conf.c