]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Log error if domain uses security driver which is not loaded
authorErik Skultety <eskultet@redhat.com>
Tue, 5 May 2015 11:24:41 +0000 (13:24 +0200)
committerErik Skultety <eskultet@redhat.com>
Thu, 21 May 2015 10:33:52 +0000 (12:33 +0200)
commitfb0b9a2cc50fb7a52eb4afea8ea48e39db74e45b
tree976b4e04f2c76b4b271b1541f8d964f202d12f61
parentaef2a0a26c42efeedd25ad570269f5f1cc9da6b5
qemu: Log error if domain uses security driver which is not loaded

When starting a domain, if a domain specifies security drivers we do not have
loaded, we fail. However we don't check for this during
reconnect, so any operation relying on security driver functionality would fail.
If someone e.g. starts a domain with selinux driver loaded, then they change
the security driver to 'none' in config, restart the daemon and call dump/save/..,
QEMU will return an error.
As we shouldn't kill the domain, we should at least log an error to let the
user know that domain reconnect wasn't completely clean.

https://bugzilla.redhat.com/show_bug.cgi?id=1183893
src/qemu/qemu_process.c