summaryrefslogtreecommitdiffstats
path: root/tests/test-qobject-output-visitor.c
diff options
context:
space:
mode:
authorDaniel P. Berrangé2019-02-11 19:24:29 +0100
committerMarc-André Lureau2019-02-12 17:35:56 +0100
commit1645984b04fd8597ccdfc6e8530fd17d23f4cdf0 (patch)
tree30c1e116044ec6061be09dd6177987fb68c5a4ca /tests/test-qobject-output-visitor.c
parentio: add qio_task_wait_thread to join with a background thread (diff)
downloadqemu-1645984b04fd8597ccdfc6e8530fd17d23f4cdf0.tar.gz
qemu-1645984b04fd8597ccdfc6e8530fd17d23f4cdf0.tar.xz
qemu-1645984b04fd8597ccdfc6e8530fd17d23f4cdf0.zip
chardev: fix validation of options for QMP created chardevs
The TLS creds option is not valid with certain address types. The user config was only checked for errors when parsing legacy QemuOpts, thus the user could pass unsupported values via QMP. Pull all code for validating options out into a new method qmp_chardev_validate_socket, that is called from the main qmp_chardev_open_socket method. This adds a missing check for rejecting TLS creds with the vsock address type. Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20190211182442.8542-4-berrange@redhat.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'tests/test-qobject-output-visitor.c')
0 files changed, 0 insertions, 0 deletions