[libvirt] Valid characters in domain names?

Justin Clift jclift at redhat.com
Mon Oct 4 16:31:47 UTC 2010


On 10/05/2010 03:03 AM, Paolo Bonzini wrote:
> On 10/03/2010 11:33 AM, Richard W.M. Jones wrote:
>> Indeed. I'm sure we need a whitelist, not a blacklist as suggested by
>> the other comment. All domains I'd ever want to create would match
>> the regexp
>>
>> ^[[:alpha:]][-_[:alnum:]]*$
>>
>> This might break existing users however.
>
> A period in a name is definitely useful. Also, I think there is no need
> to differentiate between the first and the other characters, except
> perhaps to prohibit a name starting with "-".

Heh.  Two periods in a name could lead to fun.  Stuff like:

   name="../../../etc/shadow"

Well, you know what I mean. :)




More information about the libvir-list mailing list