]> xenbits.xensource.com Git - libvirt.git/commit
qemu: snapshot: Mark file becoming backingStore as read-only
authorPeter Krempa <pkrempa@redhat.com>
Mon, 9 Dec 2019 11:44:41 +0000 (12:44 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 9 Dec 2019 13:07:24 +0000 (14:07 +0100)
commit6f6a1763a1c227b7b5d92ec813c02ce1b26b10a2
tree03bc37657bf7ab6f3604d966ad669701d502e5dc
parent35614b6022244b8ccb04b0c7aff3b7cd32ff418a
qemu: snapshot: Mark file becoming backingStore as read-only

For any backing file we set 'read-only' to true, but didn't do this when
modifying the recorded backing store when creating external snapshots.

This meant that qemu would attempt to open the backing-file read-write.
This would fail for example when selinux is used as qemu doesn't have
write permission for the backing file.

https://bugzilla.redhat.com/show_bug.cgi?id=1781079

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_driver.c