]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: storagefile: Flag backing store strings with authentication
authorPeter Krempa <pkrempa@redhat.com>
Thu, 15 Aug 2019 17:29:43 +0000 (19:29 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 26 Aug 2019 11:49:17 +0000 (13:49 +0200)
commit6ff9241058dba35565ed594c7931e52a46a82b13
treeb5a9e4fb6a03e326ca5607bb3f456a2e334ccc05
parentb1c778d854a927c3b7d11f06add9761148b6d5d5
util: storagefile: Flag backing store strings with authentication

Using inline authentication for storage volumes will not work properly
as libvirt requires use of the secret driver for the auth data and
thus would not be able to represent the passwords stored in the backing
store string.

Make sure that the backing store parsers return 1 which is a sign for
the caller to not use the file in certain cases.

The test data include iscsi via a json pseudo-protocol string and URIs
with the userinfo part being present.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virstoragefile.c
tests/virstoragetest.c