1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <!-- Author: Ray Valdez, Reiner Sailer {rvaldez,sailer}@us.ibm.com --> |
---|
3 | <!-- This file defines the schema, which is used to define --> |
---|
4 | <!-- the security policy and the security labels in Xen. --> |
---|
5 | |
---|
6 | <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.ibm.com" xmlns="http://www.ibm.com" elementFormDefault="qualified"> |
---|
7 | <xsd:element name="SecurityPolicyDefinition"> |
---|
8 | <xsd:complexType> |
---|
9 | <xsd:sequence> |
---|
10 | <xsd:element ref="PolicyHeader" minOccurs="1" maxOccurs="1"></xsd:element> |
---|
11 | <xsd:element ref="SimpleTypeEnforcement" minOccurs="0" maxOccurs="1"></xsd:element> |
---|
12 | <xsd:element ref="ChineseWall" minOccurs="0" maxOccurs="1"></xsd:element> |
---|
13 | <xsd:element ref="SecurityLabelTemplate" minOccurs="1" maxOccurs="1"></xsd:element> |
---|
14 | </xsd:sequence> |
---|
15 | </xsd:complexType> |
---|
16 | </xsd:element> |
---|
17 | <xsd:element name="PolicyHeader"> |
---|
18 | <xsd:complexType> |
---|
19 | <xsd:sequence> |
---|
20 | <xsd:element name="PolicyName" minOccurs="1" maxOccurs="1" type="xsd:string"></xsd:element> |
---|
21 | <xsd:element name="PolicyUrl" minOccurs="0" maxOccurs="1" type="xsd:string"></xsd:element> |
---|
22 | <xsd:element name="Reference" type="xsd:string" minOccurs="0" maxOccurs="1" /> |
---|
23 | <xsd:element name="Date" minOccurs="0" maxOccurs="1" type="xsd:string"></xsd:element> |
---|
24 | <xsd:element name="NameSpaceUrl" minOccurs="0" maxOccurs="1" type="xsd:string"></xsd:element> |
---|
25 | <xsd:element name="Version" minOccurs="0" maxOccurs="1" type="VersionFormat"/> |
---|
26 | <xsd:element ref="FromPolicy" minOccurs="0" maxOccurs="1"/> |
---|
27 | </xsd:sequence> |
---|
28 | </xsd:complexType> |
---|
29 | </xsd:element> |
---|
30 | <xsd:element name="ChineseWall"> |
---|
31 | <xsd:complexType> |
---|
32 | <xsd:sequence> |
---|
33 | <xsd:element ref="ChineseWallTypes" minOccurs="1" maxOccurs="1" /> |
---|
34 | <xsd:element ref="ConflictSets" minOccurs="0" maxOccurs="1" /> |
---|
35 | </xsd:sequence> |
---|
36 | <xsd:attribute name="priority" type="PolicyOrder" use="optional"></xsd:attribute> |
---|
37 | </xsd:complexType> |
---|
38 | </xsd:element> |
---|
39 | <xsd:element name="SimpleTypeEnforcement"> |
---|
40 | <xsd:complexType> |
---|
41 | <xsd:sequence> |
---|
42 | <xsd:element ref="SimpleTypeEnforcementTypes" /> |
---|
43 | </xsd:sequence> |
---|
44 | <xsd:attribute name="priority" type="PolicyOrder" use="optional"></xsd:attribute> |
---|
45 | </xsd:complexType> |
---|
46 | </xsd:element> |
---|
47 | <xsd:element name="SecurityLabelTemplate"> |
---|
48 | <xsd:complexType> |
---|
49 | <xsd:sequence> |
---|
50 | <xsd:element name="SubjectLabels" minOccurs="0" maxOccurs="1"> |
---|
51 | <xsd:complexType> |
---|
52 | <xsd:sequence> |
---|
53 | <xsd:element ref="VirtualMachineLabel" minOccurs="1" maxOccurs="unbounded"></xsd:element> |
---|
54 | </xsd:sequence> |
---|
55 | <xsd:attribute name="bootstrap" type="xsd:string" use="required"></xsd:attribute> |
---|
56 | </xsd:complexType> |
---|
57 | </xsd:element> |
---|
58 | <xsd:element name="ObjectLabels" minOccurs="0" maxOccurs="1"> |
---|
59 | <xsd:complexType> |
---|
60 | <xsd:sequence> |
---|
61 | <xsd:element ref="ResourceLabel" minOccurs="1" maxOccurs="unbounded"></xsd:element> |
---|
62 | </xsd:sequence> |
---|
63 | </xsd:complexType> |
---|
64 | </xsd:element> |
---|
65 | </xsd:sequence> |
---|
66 | </xsd:complexType> |
---|
67 | </xsd:element> |
---|
68 | <xsd:element name="ChineseWallTypes"> |
---|
69 | <xsd:complexType> |
---|
70 | <xsd:sequence> |
---|
71 | <xsd:element maxOccurs="unbounded" minOccurs="1" ref="Type" /> |
---|
72 | </xsd:sequence> |
---|
73 | </xsd:complexType> |
---|
74 | </xsd:element> |
---|
75 | <xsd:element name="ConflictSets"> |
---|
76 | <xsd:complexType> |
---|
77 | <xsd:sequence> |
---|
78 | <xsd:element maxOccurs="unbounded" minOccurs="1" ref="Conflict" /> |
---|
79 | </xsd:sequence> |
---|
80 | </xsd:complexType> |
---|
81 | </xsd:element> |
---|
82 | <xsd:element name="SimpleTypeEnforcementTypes"> |
---|
83 | <xsd:complexType> |
---|
84 | <xsd:sequence> |
---|
85 | <xsd:element maxOccurs="unbounded" minOccurs="1" ref="Type" /> |
---|
86 | </xsd:sequence> |
---|
87 | </xsd:complexType> |
---|
88 | </xsd:element> |
---|
89 | <xsd:element name="Conflict"> |
---|
90 | <xsd:complexType> |
---|
91 | <xsd:sequence> |
---|
92 | <xsd:element maxOccurs="unbounded" minOccurs="1" ref="Type" /> |
---|
93 | </xsd:sequence> |
---|
94 | <xsd:attribute name="name" type="xsd:string" use="optional"></xsd:attribute> |
---|
95 | </xsd:complexType> |
---|
96 | </xsd:element> |
---|
97 | <xsd:element name="VirtualMachineLabel"> |
---|
98 | <xsd:complexType> |
---|
99 | <xsd:sequence> |
---|
100 | <xsd:element ref="Name"></xsd:element> |
---|
101 | <xsd:element ref="SimpleTypeEnforcementTypes" minOccurs="0" maxOccurs="unbounded" /> |
---|
102 | <xsd:element ref="ChineseWallTypes" minOccurs="0" maxOccurs="unbounded" /> |
---|
103 | </xsd:sequence> |
---|
104 | </xsd:complexType> |
---|
105 | </xsd:element> |
---|
106 | <xsd:element name="ResourceLabel"> |
---|
107 | <xsd:complexType> |
---|
108 | <xsd:sequence> |
---|
109 | <xsd:element ref="Name"></xsd:element> |
---|
110 | <xsd:element ref="SimpleTypeEnforcementTypes" minOccurs="0" maxOccurs="unbounded" /> |
---|
111 | </xsd:sequence> |
---|
112 | </xsd:complexType> |
---|
113 | </xsd:element> |
---|
114 | <xsd:element name="Name" type="xsd:string" /> |
---|
115 | <xsd:element name="Type" type="xsd:string" /> |
---|
116 | <xsd:simpleType name="PolicyOrder"> |
---|
117 | <xsd:restriction base="xsd:string"> |
---|
118 | <xsd:enumeration value="PrimaryPolicyComponent"></xsd:enumeration> |
---|
119 | </xsd:restriction> |
---|
120 | </xsd:simpleType> |
---|
121 | <xsd:element name="FromPolicy"> |
---|
122 | <xsd:complexType> |
---|
123 | <xsd:sequence> |
---|
124 | <xsd:element name="PolicyName" minOccurs="1" maxOccurs="1" type="xsd:string"/> |
---|
125 | <xsd:element name="Version" minOccurs="1" maxOccurs="1" type="VersionFormat"/> |
---|
126 | </xsd:sequence> |
---|
127 | </xsd:complexType> |
---|
128 | </xsd:element> |
---|
129 | <xsd:simpleType name="VersionFormat"> |
---|
130 | <xsd:restriction base="xsd:string"> |
---|
131 | <xsd:pattern value="[0-9]{1,8}.[0-9]{1,8}"></xsd:pattern> |
---|
132 | </xsd:restriction> |
---|
133 | </xsd:simpleType> |
---|
134 | </xsd:schema> |
---|