[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 17/17] block: remove support for legecy AES q
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v2 17/17] block: remove support for legecy AES qcow/qcow2 encryption |
Date: |
Mon, 8 Feb 2016 14:26:54 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 |
On 01/20/2016 10:38 AM, Daniel P. Berrange wrote:
> Refuse to use images with the legacy AES-CBC encryption
> format in the system emulators. They are still fully
> supported in the qemu-img, qemu-io & qemu-nbd tools in
> order to allow data to be liberated and for compatibility
> with older QEMU versions. Continued support in these tools
> is not a notable burden with the new FDE framework.
>
> Signed-off-by: Daniel P. Berrange <address@hidden>
> ---
> +++ b/block/qcow.c
> @@ -180,6 +180,14 @@ static int qcow_open(BlockDriverState *bs, QDict
> *options, int flags,
> s->crypt_method_header = header.crypt_method;
> if (s->crypt_method_header) {
> if (s->crypt_method_header == QCOW_CRYPT_AES) {
> + if (bdrv_uses_whitelist()) {
> + error_setg(errp,
> + "Use of AES-CBC encrypted qcow images is no
> longer "
> + "supported. Please use the qcow2 LUKS format
> instead.");
error_setg() should be a single phrase with no trailing punctuation, not
two sentences. Use error_append_hint() for the suggestion of the
replacement.
> +++ b/block/qcow2.c
> @@ -1209,6 +1209,14 @@ static int qcow2_open(BlockDriverState *bs, QDict
> *options, int flags,
>
> s->crypt_method_header = header.crypt_method;
> if (s->crypt_method_header) {
> + if (bdrv_uses_whitelist() &&
> + s->crypt_method_header == QCOW_CRYPT_AES) {
> + error_setg(errp,
> + "Use of AES-CBC encrypted qcow2 images is no longer "
> + "supported. Please use the qcow2 LUKS format
> instead.");
Ditto
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-devel] [PATCH v2 17/17] block: remove support for legecy AES qcow/qcow2 encryption,
Eric Blake <=