Skip to contentSkip to conversation

Restriction to the policy XML

PATCH New Stefan Berger 1 participant 1 message Mar 31, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Restriction to the policy XML

Restrict the XML of the policy to only allow one
SimpleTypeEnforcementType node.

xen-unstable.hg/tools/python/xen/util/acmpolicy.py +1 -1
Index: root/xen-unstable.hg/tools/python/xen/util/acmpolicy.py
===================================================================
@@ -216,7 +216,7 @@ ACM_SCHEMA="""<?xml version="1.0" encodi
 		<xsd:complexType>
 			<xsd:sequence>
 				<xsd:element name="Name" type="NameWithFrom"></xsd:element>
-				<xsd:element ref="SimpleTypeEnforcementTypes" minOccurs="0" maxOccurs="unbounded" />
+				<xsd:element ref="SimpleTypeEnforcementTypes" minOccurs="0" maxOccurs="1" />
 				<xsd:element ref="ChineseWallTypes" minOccurs="0" maxOccurs="unbounded" />
 			</xsd:sequence>
 		</xsd:complexType>

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel