aboutsummaryrefslogtreecommitdiffstats
path: root/tools/security/policies/example/client_v1-security_policy.xml
blob: 669f0696c568d203744e074c006fe741b4363c08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<?xml version="1.0" encoding="UTF-8"?>
<!-- Author: Reiner Sailer, Ray Valdez {sailer,rvaldez}@us.ibm.com  -->
<!--             This file defines the security policies, which     -->
<!--             can be enforced by the Xen Access Control Module.  -->
<!--             Currently: Chinese Wall and Simple Type Enforcement-->
<SecurityPolicyDefinition xmlns="http://www.ibm.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.ibm.com ../../security_policy.xsd ">
	<PolicyHeader>
		<PolicyName>example.client_v1</PolicyName>
		<PolicyUrl>www.ibm.com/example/client_v1</PolicyUrl>
		<Date>2006-03-31</Date>
		<Version>1.0</Version>
	</PolicyHeader>
	<!--                                                        -->
	<!-- example of a simple type enforcement policy definition -->
	<!--                                                        -->
	<SimpleTypeEnforcement>
		<SimpleTypeEnforcementTypes>
			<Type>ste_SystemManagement</Type><!-- machine/security management -->
			<Type>ste_PersonalFinances</Type><!-- personal finances -->
			<Type>ste_InternetInsecure</Type><!-- games, active X, etc. -->
			<Type>ste_DonatedCycles</Type><!-- donation to BOINC/seti@home -->
			<Type>ste_PersistentStorageA</Type><!-- domain managing the harddrive A-->
			<Type>ste_NetworkAdapter0</Type><!-- type of the domain managing ethernet adapter 0-->
		</SimpleTypeEnforcementTypes>
	</SimpleTypeEnforcement>
	<!--                                             -->
	<!-- example of a chinese wall type definition   -->
	<!-- along with its conflict sets                -->
	<!-- (typse in a confict set are exclusive, i.e. -->
	<!--  once a Domain with one type of a set is    -->
	<!--  running, no other Domain with another type -->
	<!--  of the same conflict set can start.)       -->
	<ChineseWall priority="PrimaryPolicyComponent">
		<ChineseWallTypes>
			<Type>cw_SystemManagement</Type>
			<Type>cw_Sensitive</Type>
			<Type>cw_Isolated</Type>
			<Type>cw_Distrusted</Type>
		</ChineseWallTypes>

		<ConflictSets>
			<Conflict name="Protection1">
				<Type>cw_Sensitive</Type>
				<Type>cw_Distrusted</Type>
			</Conflict>
		</ConflictSets>
	</ChineseWall>
	<SecurityLabelTemplate>
		<SubjectLabels bootstrap="dom_SystemManagement">
			<!-- single ste typed domains            -->
			<!-- ACM enforces that only domains with -->
			<!-- the same type can share information -->
			<!--                                     -->
			<!-- Bootstrap label is assigned to Dom0 -->
			<VirtualMachineLabel>
				<Name>dom_HomeBanking</Name>
				<SimpleTypeEnforcementTypes>
					<Type>ste_PersonalFinances</Type>
				</SimpleTypeEnforcementTypes>

				<ChineseWallTypes>
					<Type>cw_Sensitive</Type>
				</ChineseWallTypes>
			</VirtualMachineLabel>

			<VirtualMachineLabel>
				<Name>dom_Fun</Name>
				<SimpleTypeEnforcementTypes>
					<Type>ste_InternetInsecure</Type>
				</SimpleTypeEnforcementTypes>

				<ChineseWallTypes>
					<Type>cw_Distrusted</Type>
				</ChineseWallTypes>
			</VirtualMachineLabel>

			<VirtualMachineLabel>
				<!-- donating some cycles to seti@home -->
				<Name>dom_BoincClient</Name>
				<SimpleTypeEnforcementTypes>
					<Type>ste_DonatedCycles</Type>
				</SimpleTypeEnforcementTypes>

				<ChineseWallTypes>
					<Type>cw_Isolated</Type>
				</ChineseWallTypes>
			</VirtualMachineLabel>

			<!-- Domains with multiple ste types services; such domains   -->
			<!-- must keep the types inside their domain safely confined. -->
			<VirtualMachineLabel>
				<Name>dom_SystemManagement</Name>
				<SimpleTypeEnforcementTypes>
					<!-- since dom0 needs access to every domain and -->
					<!-- resource right now ... -->
					<Type>ste_SystemManagement</Type>
					<Type>ste_PersonalFinances</Type>
					<Type>ste_InternetInsecure</Type>
					<Type>ste_DonatedCycles</Type>
					<Type>ste_PersistentStorageA</Type>
					<Type>ste_NetworkAdapter0</Type>
				</SimpleTypeEnforcementTypes>

				<ChineseWallTypes>
					<Type>cw_SystemManagement</Type>
				</ChineseWallTypes>
			</VirtualMachineLabel>

			<VirtualMachineLabel>
				<!-- serves persistent storage to other domains -->
				<Name>dom_StorageDomain</Name>
				<SimpleTypeEnforcementTypes>
					<!-- access right to the resource (hard drive a) -->
					<Type>ste_PersistentStorageA</Type>
					<!-- can serve following types -->
					<Type>ste_PersonalFinances</Type>
					<Type>ste_InternetInsecure</Type>
				</SimpleTypeEnforcementTypes>

				<ChineseWallTypes>
					<Type>cw_SystemManagement</Type>
				</ChineseWallTypes>
			</VirtualMachineLabel>

			<VirtualMachineLabel>
				<!-- serves network access to other domains -->
				<Name>dom_NetworkDomain</Name>
				<SimpleTypeEnforcementTypes>
					<!-- access right to the resource (ethernet card) -->
					<Type>ste_NetworkAdapter0</Type>
					<!-- can serve following types -->
					<Type>ste_PersonalFinances</Type>
					<Type>ste_InternetInsecure</Type>
					<Type>ste_DonatedCycles</Type>
				</SimpleTypeEnforcementTypes>

				<ChineseWallTypes>
					<Type>cw_SystemManagement</Type>
				</ChineseWallTypes>
			</VirtualMachineLabel>
		</SubjectLabels>

		<ObjectLabels>
			<ResourceLabel>
				<Name>res_ManagementResource</Name>
				<SimpleTypeEnforcementTypes>
					<Type>ste_SystemManagement</Type>
				</SimpleTypeEnforcementTypes>
			</ResourceLabel>

			<ResourceLabel>
				<Name>res_HardDrive(hda)</Name>
				<SimpleTypeEnforcementTypes>
					<Type>ste_PersistentStorageA</Type>
				</SimpleTypeEnforcementTypes>
			</ResourceLabel>

			<ResourceLabel>
				<Name>res_LogicalDiskPartition1(hda1)</Name>
				<SimpleTypeEnforcementTypes>
					<Type>ste_PersonalFinances</Type>
				</SimpleTypeEnforcementTypes>
			</ResourceLabel>

			<ResourceLabel>
				<Name>res_LogicalDiskPartition2(hda2)</Name>
				<SimpleTypeEnforcementTypes>
					<Type>ste_InternetInsecure</Type>
				</SimpleTypeEnforcementTypes>
			</ResourceLabel>

			<ResourceLabel>
				<Name>res_EthernetCard</Name>
				<SimpleTypeEnforcementTypes>
					<Type>ste_NetworkAdapter0</Type>
				</SimpleTypeEnforcementTypes>
			</ResourceLabel>

			<ResourceLabel>
				<Name>res_SecurityToken</Name>
				<SimpleTypeEnforcementTypes>
					<Type>ste_PersonalFinances</Type>
				</SimpleTypeEnforcementTypes>
			</ResourceLabel>

			<ResourceLabel>
				<Name>res_GraphicsAdapter</Name>
				<SimpleTypeEnforcementTypes>
					<Type>ste_SystemManagement</Type>
				</SimpleTypeEnforcementTypes>
			</ResourceLabel>
		</ObjectLabels>
	</SecurityLabelTemplate>
</SecurityPolicyDefinition>