On 01/25/2012 08:49 AM, Peter Krempa wrote: > The domain schema enforced restrictions on the domain name string that > the code doesn't. This patch relaxes the check, leaving the restrictions > on the driver or hypervisor. The only invalid character is a newline. > --- > docs/schemas/domaincommon.rng | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng > index 4fa968d..ecf3484 100644 > --- a/docs/schemas/domaincommon.rng > +++ b/docs/schemas/domaincommon.rng > @@ -3030,7 +3030,7 @@ > </define> > <define name="domainName"> > <data type="string"> > - <param name="pattern">[A-Za-z0-9_\.\+\-&:/]+</param> > + <param name="pattern">[^\n]+</param> Also, an empty name is forbidden both pre- and post-patch. I agree that any further restrictions should come from the drivers, so I'm okay giving: ACK -- Eric Blake eblake@xxxxxxxxxx +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list