summaryrefslogtreecommitdiffstats
path: root/schemas/types.xsd
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-07-31 11:13:16 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-01 11:28:24 -0400
commit108a467820942ceaf9978c98273f7f3f0a8782e4 (patch)
tree8c1c83f7637ac25bf7da8ff60d4d7a566b2d2561 /schemas/types.xsd
parent3217fee9084b664ca3f39074379f7ef4d58621b5 (diff)
downloadbcfg2-108a467820942ceaf9978c98273f7f3f0a8782e4.tar.gz
bcfg2-108a467820942ceaf9978c98273f7f3f0a8782e4.tar.bz2
bcfg2-108a467820942ceaf9978c98273f7f3f0a8782e4.zip
added schema for ACLs
Diffstat (limited to 'schemas/types.xsd')
-rw-r--r--schemas/types.xsd29
1 files changed, 29 insertions, 0 deletions
diff --git a/schemas/types.xsd b/schemas/types.xsd
index a7dae15c9..f60c7b0b7 100644
--- a/schemas/types.xsd
+++ b/schemas/types.xsd
@@ -108,7 +108,36 @@
</xsd:restriction>
</xsd:simpleType>
+ <xsd:simpleType name="ACLTypeEnum">
+ <xsd:restriction base="xsd:string">
+ <xsd:enumeration value="default"/>
+ <xsd:enumeration value="access"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+
+ <xsd:simpleType name="ACLScopeEnum">
+ <xsd:restriction base="xsd:string">
+ <xsd:enumeration value="user"/>
+ <xsd:enumeration value="group"/>
+ <xsd:enumeration value="other"/>
+ <xsd:enumeration value="mask"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+
+ <xsd:complexType name="ACLType">
+ <xsd:attribute type="ACLTypeEnum" name="type" use="required"/>
+ <xsd:attribute type="ACLScopeEnum" name="scope" use="required"/>
+ <xsd:attribute type="xsd:string" name="perms" use="required"/>
+ <xsd:attribute type="xsd:string" name="user"/>
+ <xsd:attribute type="xsd:string" name="group"/>
+ <xsd:attribute type="xsd:string" name="recursive"/>
+ <xsd:attributeGroup ref="py:genshiAttrs"/>
+ </xsd:complexType>
+
<xsd:complexType name="PathType">
+ <xsd:choice minOccurs='0' maxOccurs='unbounded'>
+ <xsd:element name='ACL' type='ACLType'/>
+ </xsd:choice>
<xsd:attribute type="PathTypeEnum" name="type"/>
<xsd:attribute type="xsd:string" name="name" use="required"/>
<xsd:attribute type="DeviceTypeEnum" name="dev_type"/>