Re: [PATCH] docs: set more permissive patterns for paths in rng schemas

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 07/02/2015 11:39 AM, Dmitry Guryanov wrote:
> There is no obvious reason to limit paths, used in
> libvirt to a subset of what is allowed in linux. So
> let's allow any symbols in paths.
> ---
>  docs/schemas/basictypes.rng | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 

Another seemingly lost patch - based on Dan's response:

http://www.redhat.com/archives/libvir-list/2015-July/msg00060.html

I'm inclined to ACK; however, before pushing I figure by bumping will
give anyone else paying attention this week to provide a contrary opinion.

John
> diff --git a/docs/schemas/basictypes.rng b/docs/schemas/basictypes.rng
> index a83063a..12cab6a 100644
> --- a/docs/schemas/basictypes.rng
> +++ b/docs/schemas/basictypes.rng
> @@ -230,25 +230,25 @@
>  
>    <define name="filePath">
>      <data type="string">
> -      <param name="pattern">[a-zA-Z0-9_\.\+\-\\&amp;&quot;&apos;&lt;&gt;/%]+</param>
> +      <param name="pattern">.+</param>
>      </data>
>    </define>
>  
>    <define name="dirPath">
>      <data type="string">
> -      <param name="pattern">[a-zA-Z0-9_\.\+\-\\&amp;&quot;&apos;&lt;&gt;/%]+</param>
> +      <param name="pattern">.+</param>
>      </data>
>    </define>
>  
>    <define name="absFilePath">
>      <data type="string">
> -      <param name="pattern">/[a-zA-Z0-9_\.\+\-\\&amp;&quot;&apos;&lt;&gt;/%,:]+</param>
> +      <param name="pattern">/.+</param>
>      </data>
>    </define>
>  
>    <define name="absDirPath">
>      <data type="string">
> -      <param name="pattern">/[a-zA-Z0-9_\.\+\-\\&amp;&quot;&apos;&lt;&gt;/%]*</param>
> +      <param name="pattern">/.*</param>
>      </data>
>    </define>
>  
> 

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]