mirror of https://gitee.com/openkylin/libvirt.git
Make secrets RNG more strict
* docs/schemas/secret.rng: Require volume element to be an absolute path. Fix whitespace indentation
This commit is contained in:
parent
756be09d23
commit
67b2d5e0bf
|
@ -7,40 +7,40 @@
|
|||
<define name='secret'>
|
||||
<element name='secret'>
|
||||
<optional>
|
||||
<attribute name='ephemeral'>
|
||||
<choice>
|
||||
<value>yes</value>
|
||||
<value>no</value>
|
||||
</choice>
|
||||
</attribute>
|
||||
<attribute name='ephemeral'>
|
||||
<choice>
|
||||
<value>yes</value>
|
||||
<value>no</value>
|
||||
</choice>
|
||||
</attribute>
|
||||
</optional>
|
||||
<optional>
|
||||
<attribute name='private'>
|
||||
<choice>
|
||||
<value>yes</value>
|
||||
<value>no</value>
|
||||
</choice>
|
||||
</attribute>
|
||||
<attribute name='private'>
|
||||
<choice>
|
||||
<value>yes</value>
|
||||
<value>no</value>
|
||||
</choice>
|
||||
</attribute>
|
||||
</optional>
|
||||
<interleave>
|
||||
<optional>
|
||||
<element name='uuid'>
|
||||
<ref name='UUID'/>
|
||||
</element>
|
||||
</optional>
|
||||
<optional>
|
||||
<element name='description'>
|
||||
<text/>
|
||||
</element>
|
||||
</optional>
|
||||
<optional>
|
||||
<element name='usage'>
|
||||
<choice>
|
||||
<ref name='usagevolume'>
|
||||
</choice>
|
||||
<text/>
|
||||
</element>
|
||||
</optional>
|
||||
<optional>
|
||||
<element name='uuid'>
|
||||
<ref name='UUID'/>
|
||||
</element>
|
||||
</optional>
|
||||
<optional>
|
||||
<element name='description'>
|
||||
<text/>
|
||||
</element>
|
||||
</optional>
|
||||
<optional>
|
||||
<element name='usage'>
|
||||
<choice>
|
||||
<ref name='usagevolume'>
|
||||
<!-- More choices later -->
|
||||
</choice>
|
||||
</element>
|
||||
</optional>
|
||||
</interleave>
|
||||
</element>
|
||||
</define>
|
||||
|
@ -50,7 +50,7 @@
|
|||
<value>volume</value>
|
||||
</attribute>
|
||||
<element name='volume'>
|
||||
<text/>
|
||||
<ref name='absFilePath'/>
|
||||
</element>
|
||||
</define>
|
||||
|
||||
|
@ -65,4 +65,10 @@
|
|||
</choice>
|
||||
</define>
|
||||
|
||||
<define name="absFilePath">
|
||||
<data type="string">
|
||||
<param name="pattern">/[a-zA-Z0-9_\.\+\-&/%]+</param>
|
||||
</data>
|
||||
</define>
|
||||
|
||||
</grammar>
|
||||
|
|
Loading…
Reference in New Issue