]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
virSecurityManagerGenLabel: Skip seclabels without model
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 15 Jul 2013 13:50:29 +0000 (15:50 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 17 Jul 2013 10:36:47 +0000 (12:36 +0200)
commitba44dd2453d486e9eb8c6204f8d7c31d07007d8f
treee6cb5cbe559e39a0ae58c2d3a4c11bd0a4c30f0a
parent37d96498c6a9c3030bfad7dfbd273af5fbdd1845
virSecurityManagerGenLabel: Skip seclabels without model

While generating seclabels, we check the seclabel stack if required
driver is in the stack. If not, an error is returned. However, it is
possible for a seclabel to not have any model set (happens with LXC
domains that have just <seclabel type='none'>). If that's the case,
we should just skip the iteration instead of calling STREQ(NULL, ...)
and SIGSEGV-ing subsequently.
src/security/security_manager.c