[PATCH 00/11] qemu: Fix crash when attempting to use authentication for HTTP backed disks

Ján Tomko jtomko at redhat.com
Fri Apr 22 22:09:29 UTC 2022


On a Friday in 2022, Peter Krempa wrote:
>The crash is fixed by properly instantiating the auth object.
>
>Also this series cleans up some problems noticed along the way.
>
>Peter Krempa (11):
>  conf: schema: Fix alignment in 'diskSourceNetworkProtocolHTTPS' schema
>    definition
>  qemuDomainValidateStorageSource: Reorganize encryption config
>    validation
>  qemuDomainValidateStorageSource: Add validation of 'encryption'
>    support
>  qemuBlockStorageSourceGetRBDProps: Simplify handling of encryption
>    format
>  virDomainDiskDefValidateSourceChainOne: Reject authentication for
>    protocols which don't support it
>  qemuDomainStorageSourceHasAuth: Don't decide based on protocol
>  qemu: domain: Inline qemuDomainDiskHasEncryptionSecret
>  qemu: domain: Inline qemuDomainStorageSourceHasAuth
>  conf: schemas: Split out definition for 'ftp' protocol
>  conf: schema: Allow authentication for FTP(S) and HTTP(S) disks
>  tests: qemuxml2*: Add testing of authenticated http/ftp disks
>
> src/conf/domain_validate.c                    |  34 ++++++
> src/conf/schemas/domaincommon.rng             |  35 +++++-
> src/qemu/qemu_block.c                         |  10 +-
> src/qemu/qemu_domain.c                        | 103 ++++++------------
> src/qemu/qemu_domain.h                        |   3 -
> .../disk-cdrom-network.x86_64-4.1.0.args      |   6 +-
> .../disk-cdrom-network.x86_64-latest.args     |   6 +-
> tests/qemuxml2argvdata/disk-cdrom-network.xml |   6 +
> .../disk-encryption-wrong.x86_64-latest.err   |   1 +
> .../disk-encryption-wrong.xml                 |  37 +++++++
> ...-network-rbd-encryption.x86_64-latest.args |   2 +-
> .../disk-network-rbd-encryption.xml           |   2 +-
> tests/qemuxml2argvtest.c                      |   1 +
> .../disk-cdrom-network.x86_64-latest.xml      |  72 ++++++++++++
> ...k-network-rbd-encryption.x86_64-latest.xml |   2 +-
> tests/qemuxml2xmltest.c                       |   1 +
> 16 files changed, 233 insertions(+), 88 deletions(-)
> create mode 100644 tests/qemuxml2argvdata/disk-encryption-wrong.x86_64-latest.err
> create mode 100644 tests/qemuxml2argvdata/disk-encryption-wrong.xml
> create mode 100644 tests/qemuxml2xmloutdata/disk-cdrom-network.x86_64-latest.xml
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20220423/cc139f7c/attachment.sig>


More information about the libvir-list mailing list