]> xenbits.xensource.com Git - libvirt.git/commit
Avoid crash in security driver if model is NULL
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 18 Jan 2011 18:01:10 +0000 (18:01 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 21 Jan 2011 16:07:04 +0000 (16:07 +0000)
commit31c698d76d9c044a2bc19ba6f22fd82f1a451468
treefb5915ee4df9ee4209ae532f48ac375348176ec4
parentbda57661b8086b4d5858328afdfc28fe1b58f112
Avoid crash in security driver if model is NULL

If the XML security model is NULL, it is assumed that the current
model will be used with dynamic labelling. The verify step is
meaningless and potentially crashes if dereferencing NULL

* src/security/security_manager.c: Skip NULL model on verify
src/security/security_manager.c