block/crypto: disallow write sharing by default
commit662d0c5392a272aa0357aa7205e77fa3ca89c316
authorMaxim Levitsky <mlevitsk@redhat.com>
Sun, 19 Jul 2020 12:20:58 +0000 (19 15:20 +0300)
committerMax Reitz <mreitz@redhat.com>
Tue, 21 Jul 2020 08:49:02 +0000 (21 10:49 +0200)
treecb38493b9bf17459887c7a486053c52894d3ef6f
parentaf3d69058e09bede9900f266a618ed11f76f49f3
block/crypto: disallow write sharing by default

My commit 'block/crypto: implement the encryption key management'
accidently allowed raw luks images to be shared between different
qemu processes without share-rw=on explicit override.
Fix that.

Fixes: bbfdae91fb ("block/crypto: implement the encryption key management")
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1857490

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20200719122059.59843-2-mlevitsk@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/crypto.c