[libvirt] Valid characters in domain names?

Paolo Bonzini pbonzini at redhat.com
Mon Oct 4 16:03:06 UTC 2010


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 "-".

Paolo




More information about the libvir-list mailing list