[libvirt] [PATCH 4/4] schema: smbios: allow any strings

John Ferlan jferlan at redhat.com
Thu Oct 13 21:23:33 UTC 2016



On 10/10/2016 11:51 AM, Peter Krempa wrote:
> The smbios docs allow any string to be passed and libvirt does not
> really do any validation on them. Allow passing any string.
> 
> Partially resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1373535
> ---
>  docs/schemas/domaincommon.rng | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 

ACK, although couldn't the <ref name="sysinfo-value"/>'s each be
replaced by <text/>, too?

John


> diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
> index 6eeb4e9..f1609f9 100644
> --- a/docs/schemas/domaincommon.rng
> +++ b/docs/schemas/domaincommon.rng
> @@ -4517,9 +4517,7 @@
>    </define>
> 
>    <define name="sysinfo-value">
> -    <data type="string">
> -      <param name='pattern'>[a-zA-Z0-9/\-_\. \(\)]+</param>
> -    </data>
> +    <data type="string"/>
>    </define>
> 
>    <define name="acpiTable">
> 




More information about the libvir-list mailing list