]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Don't chown qemu saved image back to root after save if dynamic_ownership=0
authorLaine Stump <laine@laine.org>
Wed, 5 Jan 2011 21:53:03 +0000 (16:53 -0500)
committerLaine Stump <laine@laine.org>
Thu, 6 Jan 2011 01:22:19 +0000 (20:22 -0500)
commita691cb88f2fa9d4caaca12ed048ed487fdbc09e3
treeb79869c5d1ad41a9b840ea29317086d6dfd7caee
parent1000d9c2b0ea4b7c4bea022f8ad3ca756d1ed389
Don't chown qemu saved image back to root after save if dynamic_ownership=0

When dynamic_ownership=0, saved images must be owned by the same uid
as is used to run the qemu process, otherwise restore won't work. To
accomplish this, qemuSecurityDACRestoreSavedStateLabel() needs to
simply return when it's called.

This fix is in response to:

  https://bugzilla.redhat.com/show_bug.cgi?id=661720
src/qemu/qemu_security_dac.c