[libvirt] [PATCH 00/11] Add checks to ensure a name isn't all whitespace

Ján Tomko jtomko at redhat.com
Tue Jul 31 08:28:31 UTC 2018


On Mon, Jul 30, 2018 at 02:46:37PM -0400, John Ferlan wrote:
>https://bugzilla.redhat.com/show_bug.cgi?id=1107420
>
>As unusual as the case may be, having a name of all white space
>has been allowed. This leads to the obvious problem of how a future
>usage would be able to "utilize" that resource since it's not "simple"
>to determine what combination of spaces and tabs are being used for
>the name.
>

So if the user wants it difficult, they can do so.
What do we gain by forbidding it?

> 46 files changed, 418 insertions(+), 131 deletions(-)
> create mode 100644 tests/domainsnapshotxml2xmlin/name_whitespace.xml
> create mode 100644 tests/networkxml2xmlin/network-whitespace-name.xml
> create mode 100644 tests/nwfilterxml2xmlin/name-whitespace-invalid.xml
> create mode 100644 tests/qemuxml2argvdata/name-whitespace.xml
> create mode 100644 tests/secretxml2xmlin/usage-whitespace-invalid.xml
> create mode 100644 tests/storagepoolxml2xmlin/pool-dir-whitespace-name.xml
>

(apart from extra 300 lines)

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180731/2dbf8548/attachment-0001.sig>


More information about the libvir-list mailing list