ia64/xen-unstable

changeset 9830:9a5bc502a77a

This patch adds a policy name to the policy definition. This policy name
must be unique and must change if the content of the file changes. The
policy name is used to ensure that the XM tools and the hypervisor work
on the same policy, i.e., interpret the security information on domains
consistently. This patch also simplifies the policy management by moving
policy and labels into a single file.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>
author smh22@firebug.cl.cam.ac.uk
date Mon Apr 24 10:50:38 2006 +0100 (2006-04-24)
parents e327fb66a8d9
children 0a5183b3e7bb
files Makefile tools/security/policies/security_policy.xsd
line diff
     1.1 --- a/Makefile	Sun Apr 23 09:20:31 2006 +0100
     1.2 +++ b/Makefile	Mon Apr 24 10:50:38 2006 +0100
     1.3 @@ -2,7 +2,8 @@
     1.4  # Grand Unified Makefile for Xen.
     1.5  #
     1.6  
     1.7 -KERNELS ?= linux-2.6-xen
     1.8 +#KERNELS ?= linux-2.6-xen
     1.9 +KERNELS ?= linux-2.6-xen0 linux-2.6-xenU
    1.10  # You may use wildcards in the above e.g. KERNELS=*2.6*
    1.11  
    1.12  XKERNELS := $(foreach kernel, $(KERNELS), $(patsubst buildconfigs/mk.%,%,$(wildcard buildconfigs/mk.$(kernel))) )
     2.1 --- a/tools/security/policies/chwall/chwall-security_label_template.xml	Sun Apr 23 09:20:31 2006 +0100
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,76 +0,0 @@
     2.4 -<?xml version="1.0"?>
     2.5 -<!-- Author: Reiner Sailer, Ray Valdez {sailer,rvaldez}@us.ibm.com  -->
     2.6 -<!--              This file defines the security labels, which can  -->
     2.7 -<!--              be attached to Domains and resources. Based on    -->
     2.8 -<!--              these labels, the access control module decides   -->
     2.9 -<!--              about sharing between Domains and about access    -->
    2.10 -<!--              of Domains to real resources.                     -->
    2.11 -
    2.12 -<SecurityLabelTemplate
    2.13 - xmlns="http://www.ibm.com"
    2.14 - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    2.15 - xsi:schemaLocation="http://www.ibm.com security_policy.xsd">
    2.16 -   <LabelHeader>
    2.17 -      <Name>chwall-security_label_template</Name>
    2.18 -      <Date>2005-08-10</Date>
    2.19 -      <PolicyName>
    2.20 -         <Url>chwall-security_policy.xml</Url>
    2.21 -         <Reference>abcdef123456abcdef</Reference>
    2.22 -      </PolicyName>
    2.23 -   </LabelHeader>
    2.24 -
    2.25 -   <SubjectLabels bootstrap="dom_SystemManagement">
    2.26 -      <!-- single ste typed domains            -->
    2.27 -      <!-- ACM enforces that only domains with -->
    2.28 -      <!-- the same type can share information -->
    2.29 -      <!--                                     -->
    2.30 -      <!-- Bootstrap label is assigned to Dom0 -->
    2.31 -      <VirtualMachineLabel>
    2.32 -      	<Name>dom_HomeBanking</Name>
    2.33 -         <ChineseWallTypes>
    2.34 -            <Type>cw_Sensitive</Type>
    2.35 -         </ChineseWallTypes>
    2.36 -      </VirtualMachineLabel>
    2.37 -
    2.38 -      <VirtualMachineLabel>
    2.39 -      	<Name>dom_Fun</Name>
    2.40 -         <ChineseWallTypes>
    2.41 -            <Type>cw_Distrusted</Type>
    2.42 -         </ChineseWallTypes>
    2.43 -      </VirtualMachineLabel>
    2.44 -
    2.45 -      <VirtualMachineLabel>
    2.46 -        <!-- donating some cycles to seti@home -->
    2.47 -      	<Name>dom_BoincClient</Name>
    2.48 -         <ChineseWallTypes>
    2.49 -            <Type>cw_Isolated</Type>
    2.50 -         </ChineseWallTypes>
    2.51 -      </VirtualMachineLabel>
    2.52 -
    2.53 -      <!-- Domains with multiple ste types services; such domains   -->
    2.54 -      <!-- must keep the types inside their domain safely confined. -->
    2.55 -      <VirtualMachineLabel>
    2.56 -      	<Name>dom_SystemManagement</Name>
    2.57 -         <ChineseWallTypes>
    2.58 -            <Type>cw_SystemManagement</Type>
    2.59 -         </ChineseWallTypes>
    2.60 -      </VirtualMachineLabel>
    2.61 -
    2.62 -      <VirtualMachineLabel>
    2.63 -        <!-- serves persistent storage to other domains -->
    2.64 -      	<Name>dom_StorageDomain</Name>
    2.65 -         <ChineseWallTypes>
    2.66 -            <Type>cw_SystemManagement</Type>
    2.67 -         </ChineseWallTypes>
    2.68 -      </VirtualMachineLabel>
    2.69 -
    2.70 -      <VirtualMachineLabel>
    2.71 -        <!-- serves network access to other domains -->
    2.72 -      	<Name>dom_NetworkDomain</Name>
    2.73 -         <ChineseWallTypes>
    2.74 -            <Type>cw_SystemManagement</Type>
    2.75 -         </ChineseWallTypes>
    2.76 -      </VirtualMachineLabel>
    2.77 -   </SubjectLabels>
    2.78 -</SecurityLabelTemplate>
    2.79 -
     3.1 --- a/tools/security/policies/chwall/chwall-security_policy.xml	Sun Apr 23 09:20:31 2006 +0100
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,36 +0,0 @@
     3.4 -<?xml version="1.0" encoding="UTF-8"?>
     3.5 -<!-- Author: Reiner Sailer, Ray Valdez {sailer,rvaldez}@us.ibm.com  -->
     3.6 -<!--             This file defines the security policies, which     -->
     3.7 -<!--             can be enforced by the Xen Access Control Module.  -->
     3.8 -<!--             Currently: Chinese Wall and Simple Type Enforcement-->
     3.9 -<SecurityPolicyDefinition xmlns="http://www.ibm.com"
    3.10 - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    3.11 - xsi:schemaLocation="http://www.ibm.com security_policy.xsd">
    3.12 -<PolicyHeader>
    3.13 -		<Name>chwall-security_policy</Name>
    3.14 -		<Date>2005-08-10</Date>
    3.15 -</PolicyHeader>
    3.16 -<!--                                             -->
    3.17 -<!-- example of a chinese wall type definition   -->
    3.18 -<!-- along with its conflict sets                -->
    3.19 -<!-- (typse in a confict set are exclusive, i.e. -->
    3.20 -<!--  once a Domain with one type of a set is    -->
    3.21 -<!--  running, no other Domain with another type -->
    3.22 -<!--  of the same conflict set can start.)       -->
    3.23 -	<ChineseWall priority="PrimaryPolicyComponent">
    3.24 -        <ChineseWallTypes>
    3.25 -            <Type>cw_SystemManagement</Type>
    3.26 -            <Type>cw_Sensitive</Type>
    3.27 -            <Type>cw_Isolated</Type>
    3.28 -            <Type>cw_Distrusted</Type>
    3.29 -        </ChineseWallTypes>
    3.30 -
    3.31 -        <ConflictSets>
    3.32 -        <Conflict name="Protection1">
    3.33 -            <Type>cw_Sensitive</Type>
    3.34 -            <Type>cw_Distrusted</Type>
    3.35 -        </Conflict>
    3.36 -        </ConflictSets>
    3.37 -	</ChineseWall>
    3.38 -</SecurityPolicyDefinition>
    3.39 -
     4.1 --- a/tools/security/policies/chwall_ste/chwall_ste-security_label_template.xml	Sun Apr 23 09:20:31 2006 +0100
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,167 +0,0 @@
     4.4 -<?xml version="1.0"?>
     4.5 -<!-- Author: Reiner Sailer, Ray Valdez {sailer,rvaldez}@us.ibm.com  -->
     4.6 -<!--              This file defines the security labels, which can  -->
     4.7 -<!--              be attached to Domains and resources. Based on    -->
     4.8 -<!--              these labels, the access control module decides   -->
     4.9 -<!--              about sharing between Domains and about access    -->
    4.10 -<!--              of Domains to real resources.                     -->
    4.11 -
    4.12 -<SecurityLabelTemplate
    4.13 - xmlns="http://www.ibm.com"
    4.14 - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    4.15 - xsi:schemaLocation="http://www.ibm.com security_policy.xsd">
    4.16 -   <LabelHeader>
    4.17 -      <Name>chwall_ste-security_label_template</Name>
    4.18 -      <Date>2005-08-10</Date>
    4.19 -      <PolicyName>
    4.20 -         <Url>chwall_ste-security_policy.xml</Url>
    4.21 -         <Reference>abcdef123456abcdef</Reference>
    4.22 -      </PolicyName>
    4.23 -   </LabelHeader>
    4.24 -
    4.25 -   <SubjectLabels bootstrap="dom_SystemManagement">
    4.26 -      <!-- single ste typed domains            -->
    4.27 -      <!-- ACM enforces that only domains with -->
    4.28 -      <!-- the same type can share information -->
    4.29 -      <!--                                     -->
    4.30 -      <!-- Bootstrap label is assigned to Dom0 -->
    4.31 -      <VirtualMachineLabel>
    4.32 -      	<Name>dom_HomeBanking</Name>
    4.33 -         <SimpleTypeEnforcementTypes>
    4.34 -            <Type>ste_PersonalFinances</Type>
    4.35 -         </SimpleTypeEnforcementTypes>
    4.36 -
    4.37 -         <ChineseWallTypes>
    4.38 -            <Type>cw_Sensitive</Type>
    4.39 -         </ChineseWallTypes>
    4.40 -      </VirtualMachineLabel>
    4.41 -
    4.42 -      <VirtualMachineLabel>
    4.43 -      	<Name>dom_Fun</Name>
    4.44 -         <SimpleTypeEnforcementTypes>
    4.45 -            <Type>ste_InternetInsecure</Type>
    4.46 -         </SimpleTypeEnforcementTypes>
    4.47 -
    4.48 -         <ChineseWallTypes>
    4.49 -            <Type>cw_Distrusted</Type>
    4.50 -         </ChineseWallTypes>
    4.51 -      </VirtualMachineLabel>
    4.52 -
    4.53 -      <VirtualMachineLabel>
    4.54 -        <!-- donating some cycles to seti@home -->
    4.55 -      	<Name>dom_BoincClient</Name>
    4.56 -         <SimpleTypeEnforcementTypes>
    4.57 -            <Type>ste_DonatedCycles</Type>
    4.58 -         </SimpleTypeEnforcementTypes>
    4.59 -
    4.60 -         <ChineseWallTypes>
    4.61 -            <Type>cw_Isolated</Type>
    4.62 -         </ChineseWallTypes>
    4.63 -      </VirtualMachineLabel>
    4.64 -
    4.65 -      <!-- Domains with multiple ste types services; such domains   -->
    4.66 -      <!-- must keep the types inside their domain safely confined. -->
    4.67 -      <VirtualMachineLabel>
    4.68 -      	<Name>dom_SystemManagement</Name>
    4.69 -         <SimpleTypeEnforcementTypes>
    4.70 -            <!-- since dom0 needs access to every domain and -->
    4.71 -            <!-- resource right now ... -->
    4.72 -            <Type>ste_SystemManagement</Type>
    4.73 -            <Type>ste_PersonalFinances</Type>
    4.74 -            <Type>ste_InternetInsecure</Type>
    4.75 -            <Type>ste_DonatedCycles</Type>
    4.76 -            <Type>ste_PersistentStorageA</Type>
    4.77 -            <Type>ste_NetworkAdapter0</Type>
    4.78 -         </SimpleTypeEnforcementTypes>
    4.79 -
    4.80 -         <ChineseWallTypes>
    4.81 -            <Type>cw_SystemManagement</Type>
    4.82 -         </ChineseWallTypes>
    4.83 -      </VirtualMachineLabel>
    4.84 -
    4.85 -      <VirtualMachineLabel>
    4.86 -        <!-- serves persistent storage to other domains -->
    4.87 -      	<Name>dom_StorageDomain</Name>
    4.88 -         <SimpleTypeEnforcementTypes>
    4.89 -            <!-- access right to the resource (hard drive a) -->
    4.90 -            <Type>ste_PersistentStorageA</Type>
    4.91 -            <!-- can serve following types -->
    4.92 -            <Type>ste_PersonalFinances</Type>
    4.93 -            <Type>ste_InternetInsecure</Type>
    4.94 -         </SimpleTypeEnforcementTypes>
    4.95 -
    4.96 -         <ChineseWallTypes>
    4.97 -            <Type>cw_SystemManagement</Type>
    4.98 -         </ChineseWallTypes>
    4.99 -      </VirtualMachineLabel>
   4.100 -
   4.101 -      <VirtualMachineLabel>
   4.102 -        <!-- serves network access to other domains -->
   4.103 -      	<Name>dom_NetworkDomain</Name>
   4.104 -         <SimpleTypeEnforcementTypes>
   4.105 -            <!-- access right to the resource (ethernet card) -->
   4.106 -            <Type>ste_NetworkAdapter0</Type>
   4.107 -            <!-- can serve following types -->
   4.108 -            <Type>ste_PersonalFinances</Type>
   4.109 -            <Type>ste_InternetInsecure</Type>
   4.110 -            <Type>ste_DonatedCycles</Type>
   4.111 -         </SimpleTypeEnforcementTypes>
   4.112 -
   4.113 -         <ChineseWallTypes>
   4.114 -            <Type>cw_SystemManagement</Type>
   4.115 -         </ChineseWallTypes>
   4.116 -      </VirtualMachineLabel>
   4.117 -   </SubjectLabels>
   4.118 -
   4.119 -   <ObjectLabels>
   4.120 -      <ResourceLabel>
   4.121 -      	<Name>res_ManagementResource</Name>
   4.122 -         <SimpleTypeEnforcementTypes>
   4.123 -            <Type>ste_SystemManagement</Type>
   4.124 -         </SimpleTypeEnforcementTypes>
   4.125 -      </ResourceLabel>
   4.126 -
   4.127 -      <ResourceLabel>
   4.128 -      	<Name>res_HardDrive (hda)</Name>
   4.129 -         <SimpleTypeEnforcementTypes>
   4.130 -            <Type>ste_PersistentStorageA</Type>
   4.131 -         </SimpleTypeEnforcementTypes>
   4.132 -      </ResourceLabel>
   4.133 -
   4.134 -      <ResourceLabel>
   4.135 -      	<Name>res_LogicalDiskPartition1 (hda1)</Name>
   4.136 -         <SimpleTypeEnforcementTypes>
   4.137 -            <Type>ste_PersonalFinances</Type>
   4.138 -         </SimpleTypeEnforcementTypes>
   4.139 -      </ResourceLabel>
   4.140 -
   4.141 -      <ResourceLabel>
   4.142 -      	<Name>res_LogicalDiskPartition2 (hda2)</Name>
   4.143 -         <SimpleTypeEnforcementTypes>
   4.144 -            <Type>ste_InternetInsecure</Type>
   4.145 -         </SimpleTypeEnforcementTypes>
   4.146 -      </ResourceLabel>
   4.147 -
   4.148 -      <ResourceLabel>
   4.149 -      	<Name>res_EthernetCard</Name>
   4.150 -         <SimpleTypeEnforcementTypes>
   4.151 -            <Type>ste_NetworkAdapter0</Type>
   4.152 -         </SimpleTypeEnforcementTypes>
   4.153 -      </ResourceLabel>
   4.154 -
   4.155 -      <ResourceLabel>
   4.156 -      	<Name>res_SecurityToken</Name>
   4.157 -         <SimpleTypeEnforcementTypes>
   4.158 -            <Type>ste_PersonalFinances</Type>
   4.159 -         </SimpleTypeEnforcementTypes>
   4.160 -      </ResourceLabel>
   4.161 -
   4.162 -      <ResourceLabel>
   4.163 -      	<Name>res_GraphicsAdapter</Name>
   4.164 -         <SimpleTypeEnforcementTypes>
   4.165 -            <Type>ste_SystemManagement</Type>
   4.166 -         </SimpleTypeEnforcementTypes>
   4.167 -      </ResourceLabel>
   4.168 -   </ObjectLabels>
   4.169 -</SecurityLabelTemplate>
   4.170 -
     5.1 --- a/tools/security/policies/chwall_ste/chwall_ste-security_policy.xml	Sun Apr 23 09:20:31 2006 +0100
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,49 +0,0 @@
     5.4 -<?xml version="1.0" encoding="UTF-8"?>
     5.5 -<!-- Author: Reiner Sailer, Ray Valdez {sailer,rvaldez}@us.ibm.com  -->
     5.6 -<!--             This file defines the security policies, which     -->
     5.7 -<!--             can be enforced by the Xen Access Control Module.  -->
     5.8 -<!--             Currently: Chinese Wall and Simple Type Enforcement-->
     5.9 -<SecurityPolicyDefinition xmlns="http://www.ibm.com"
    5.10 - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    5.11 - xsi:schemaLocation="http://www.ibm.com security_policy.xsd">
    5.12 -<PolicyHeader>
    5.13 -		<Name>chwall_ste-security_policy</Name>
    5.14 -		<Date>2005-08-10</Date>
    5.15 -</PolicyHeader>
    5.16 -<!--                                                        -->
    5.17 -<!-- example of a simple type enforcement policy definition -->
    5.18 -<!--                                                        -->
    5.19 -	<SimpleTypeEnforcement>
    5.20 -        <SimpleTypeEnforcementTypes>
    5.21 -            <Type>ste_SystemManagement</Type>   <!-- machine/security management -->
    5.22 -            <Type>ste_PersonalFinances</Type>   <!-- personal finances -->
    5.23 -            <Type>ste_InternetInsecure</Type>   <!-- games, active X, etc. -->
    5.24 -            <Type>ste_DonatedCycles</Type>      <!-- donation to BOINC/seti@home -->
    5.25 -            <Type>ste_PersistentStorageA</Type> <!-- domain managing the harddrive A-->
    5.26 -            <Type>ste_NetworkAdapter0</Type>    <!-- type of the domain managing ethernet adapter 0-->
    5.27 -        </SimpleTypeEnforcementTypes>
    5.28 -	</SimpleTypeEnforcement>
    5.29 -<!--                                             -->
    5.30 -<!-- example of a chinese wall type definition   -->
    5.31 -<!-- along with its conflict sets                -->
    5.32 -<!-- (typse in a confict set are exclusive, i.e. -->
    5.33 -<!--  once a Domain with one type of a set is    -->
    5.34 -<!--  running, no other Domain with another type -->
    5.35 -<!--  of the same conflict set can start.)       -->
    5.36 -	<ChineseWall priority="PrimaryPolicyComponent">
    5.37 -        <ChineseWallTypes>
    5.38 -            <Type>cw_SystemManagement</Type>
    5.39 -            <Type>cw_Sensitive</Type>
    5.40 -            <Type>cw_Isolated</Type>
    5.41 -            <Type>cw_Distrusted</Type>
    5.42 -        </ChineseWallTypes>
    5.43 -
    5.44 -        <ConflictSets>
    5.45 -        <Conflict name="Protection1">
    5.46 -            <Type>cw_Sensitive</Type>
    5.47 -            <Type>cw_Distrusted</Type>
    5.48 -        </Conflict>
    5.49 -        </ConflictSets>
    5.50 -	</ChineseWall>
    5.51 -</SecurityPolicyDefinition>
    5.52 -
     6.1 --- a/tools/security/policies/null/null-security_label_template.xml	Sun Apr 23 09:20:31 2006 +0100
     6.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.3 @@ -1,24 +0,0 @@
     6.4 -<?xml version="1.0"?>
     6.5 -<!-- Author: Reiner Sailer, Ray Valdez {sailer,rvaldez}@us.ibm.com  -->
     6.6 -<!--              This file defines the security labels, which can  -->
     6.7 -<!--              be attached to Domains and resources. Based on    -->
     6.8 -<!--              these labels, the access control module decides   -->
     6.9 -<!--              about sharing between Domains and about access    -->
    6.10 -<!--              of Domains to real resources.                     -->
    6.11 -
    6.12 -<SecurityLabelTemplate
    6.13 - xmlns="http://www.ibm.com"
    6.14 - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    6.15 - xsi:schemaLocation="http://www.ibm.com security_policy.xsd">
    6.16 -   <LabelHeader>
    6.17 -      <Name>null-security_label_template</Name>
    6.18 -
    6.19 -      <Date>2005-08-10</Date>
    6.20 -      <PolicyName>
    6.21 -         <Url>null-security_policy.xml</Url>
    6.22 -
    6.23 -         <Reference>abcdef123456abcdef</Reference>
    6.24 -      </PolicyName>
    6.25 -   </LabelHeader>
    6.26 -</SecurityLabelTemplate>
    6.27 -
     7.1 --- a/tools/security/policies/null/null-security_policy.xml	Sun Apr 23 09:20:31 2006 +0100
     7.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.3 @@ -1,14 +0,0 @@
     7.4 -<?xml version="1.0" encoding="UTF-8"?>
     7.5 -<!-- Author: Reiner Sailer, Ray Valdez {sailer,rvaldez}@us.ibm.com  -->
     7.6 -<!--             This file defines the security policies, which     -->
     7.7 -<!--             can be enforced by the Xen Access Control Module.  -->
     7.8 -<!--             Currently: Chinese Wall and Simple Type Enforcement-->
     7.9 -<SecurityPolicyDefinition xmlns="http://www.ibm.com"
    7.10 - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    7.11 - xsi:schemaLocation="http://www.ibm.com security_policy.xsd">
    7.12 -<PolicyHeader>
    7.13 -		<Name>null-security_policy</Name>
    7.14 -		<Date>2005-08-10</Date>
    7.15 -</PolicyHeader>
    7.16 -</SecurityPolicyDefinition>
    7.17 -
     8.1 --- a/tools/security/policies/security_policy.xsd	Sun Apr 23 09:20:31 2006 +0100
     8.2 +++ b/tools/security/policies/security_policy.xsd	Mon Apr 24 10:50:38 2006 +0100
     8.3 @@ -1,22 +1,50 @@
     8.4  <?xml version="1.0" encoding="UTF-8"?>
     8.5  <!-- Author: Ray Valdez, Reiner Sailer {rvaldez,sailer}@us.ibm.com -->
     8.6  <!--         This file defines the schema, which is used to define -->
     8.7 -<!--         the security policy and the security labels in Xe.    -->
     8.8 +<!--         the security policy and the security labels in Xen.    -->
     8.9  
    8.10  <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.ibm.com" xmlns="http://www.ibm.com" elementFormDefault="qualified">
    8.11  	<xsd:element name="SecurityPolicyDefinition">
    8.12  		<xsd:complexType>
    8.13  			<xsd:sequence>
    8.14 -				<xsd:element ref="PolicyHeader" minOccurs="0" maxOccurs="1"></xsd:element>
    8.15 +				<xsd:element ref="PolicyHeader" minOccurs="1" maxOccurs="1"></xsd:element>
    8.16  				<xsd:element ref="SimpleTypeEnforcement" minOccurs="0" maxOccurs="1"></xsd:element>
    8.17  				<xsd:element ref="ChineseWall" minOccurs="0" maxOccurs="1"></xsd:element>
    8.18 +				<xsd:element ref="SecurityLabelTemplate" minOccurs="1" maxOccurs="1"></xsd:element>
    8.19  			</xsd:sequence>
    8.20  		</xsd:complexType>
    8.21  	</xsd:element>
    8.22 +	<xsd:element name="PolicyHeader">
    8.23 +		<xsd:complexType>
    8.24 +			<xsd:sequence>
    8.25 +				<xsd:element name="PolicyName" minOccurs="1" maxOccurs="1" type="xsd:string"></xsd:element>
    8.26 +				<xsd:element name="PolicyUrl" minOccurs="0" maxOccurs="1" type="xsd:string"></xsd:element>
    8.27 +				<xsd:element name="Reference" type="xsd:string" minOccurs="0" maxOccurs="1" />
    8.28 +				<xsd:element name="Date" minOccurs="0" maxOccurs="1" type="xsd:string"></xsd:element>
    8.29 +				<xsd:element name="NameSpaceUrl" minOccurs="0" maxOccurs="1" type="xsd:string"></xsd:element>
    8.30 +			</xsd:sequence>
    8.31 +		</xsd:complexType>
    8.32 +	</xsd:element>
    8.33 +	<xsd:element name="ChineseWall">
    8.34 +		<xsd:complexType>
    8.35 +			<xsd:sequence>
    8.36 +				<xsd:element ref="ChineseWallTypes" minOccurs="1" maxOccurs="1" />
    8.37 +				<xsd:element ref="ConflictSets" minOccurs="0" maxOccurs="1" />
    8.38 +			</xsd:sequence>
    8.39 +			<xsd:attribute name="priority" type="PolicyOrder" use="optional"></xsd:attribute>
    8.40 +		</xsd:complexType>
    8.41 +	</xsd:element>
    8.42 +	<xsd:element name="SimpleTypeEnforcement">
    8.43 +		<xsd:complexType>
    8.44 +			<xsd:sequence>
    8.45 +				<xsd:element ref="SimpleTypeEnforcementTypes" />
    8.46 +			</xsd:sequence>
    8.47 +			<xsd:attribute name="priority" type="PolicyOrder" use="optional"></xsd:attribute>
    8.48 +		</xsd:complexType>
    8.49 +	</xsd:element>
    8.50  	<xsd:element name="SecurityLabelTemplate">
    8.51  		<xsd:complexType>
    8.52  			<xsd:sequence>
    8.53 -				<xsd:element ref="LabelHeader" minOccurs="1" maxOccurs="1"></xsd:element>
    8.54  				<xsd:element name="SubjectLabels" minOccurs="0" maxOccurs="1">
    8.55  					<xsd:complexType>
    8.56  						<xsd:sequence>
    8.57 @@ -35,40 +63,6 @@
    8.58  			</xsd:sequence>
    8.59  		</xsd:complexType>
    8.60  	</xsd:element>
    8.61 -	<xsd:element name="PolicyHeader">
    8.62 -		<xsd:complexType>
    8.63 -			<xsd:sequence>
    8.64 -				<xsd:element ref="Name" minOccurs="1" maxOccurs="1" />
    8.65 -				<xsd:element ref="Date" minOccurs="1" maxOccurs="1" />
    8.66 -			</xsd:sequence>
    8.67 -		</xsd:complexType>
    8.68 -	</xsd:element>
    8.69 -	<xsd:element name="LabelHeader">
    8.70 -		<xsd:complexType>
    8.71 -			<xsd:sequence>
    8.72 -				<xsd:element ref="Name"></xsd:element>
    8.73 -				<xsd:element ref="Date" minOccurs="1" maxOccurs="1"></xsd:element>
    8.74 -				<xsd:element ref="PolicyName" minOccurs="1" maxOccurs="1"></xsd:element>
    8.75 -			</xsd:sequence>
    8.76 -		</xsd:complexType>
    8.77 -	</xsd:element>
    8.78 -	<xsd:element name="SimpleTypeEnforcement">
    8.79 -		<xsd:complexType>
    8.80 -			<xsd:sequence>
    8.81 -				<xsd:element ref="SimpleTypeEnforcementTypes" />
    8.82 -			</xsd:sequence>
    8.83 -			<xsd:attribute name="priority" type="PolicyOrder" use="optional"></xsd:attribute>
    8.84 -		</xsd:complexType>
    8.85 -	</xsd:element>
    8.86 -	<xsd:element name="ChineseWall">
    8.87 -		<xsd:complexType>
    8.88 -			<xsd:sequence>
    8.89 -				<xsd:element ref="ChineseWallTypes" />
    8.90 -				<xsd:element ref="ConflictSets" />
    8.91 -			</xsd:sequence>
    8.92 -			<xsd:attribute name="priority" type="PolicyOrder" use="optional"></xsd:attribute>
    8.93 -		</xsd:complexType>
    8.94 -	</xsd:element>
    8.95  	<xsd:element name="ChineseWallTypes">
    8.96  		<xsd:complexType>
    8.97  			<xsd:sequence>
    8.98 @@ -115,24 +109,11 @@
    8.99  			</xsd:sequence>
   8.100  		</xsd:complexType>
   8.101  	</xsd:element>
   8.102 -	<xsd:element name="PolicyName">
   8.103 -		<xsd:complexType>
   8.104 -			<xsd:sequence>
   8.105 -				<xsd:element ref="Url" />
   8.106 -				<xsd:element ref="Reference" />
   8.107 -			</xsd:sequence>
   8.108 -		</xsd:complexType>
   8.109 -	</xsd:element>
   8.110 -	<xsd:element name="Date" type="xsd:string" />
   8.111  	<xsd:element name="Name" type="xsd:string" />
   8.112  	<xsd:element name="Type" type="xsd:string" />
   8.113 -	<xsd:element name="Reference" type="xsd:string" />
   8.114 -	<xsd:element name="Url"></xsd:element>
   8.115 -
   8.116  	<xsd:simpleType name="PolicyOrder">
   8.117  		<xsd:restriction base="xsd:string">
   8.118  			<xsd:enumeration value="PrimaryPolicyComponent"></xsd:enumeration>
   8.119  		</xsd:restriction>
   8.120  	</xsd:simpleType>
   8.121 -
   8.122  </xsd:schema>
     9.1 --- a/tools/security/policies/ste/ste-security_label_template.xml	Sun Apr 23 09:20:31 2006 +0100
     9.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.3 @@ -1,143 +0,0 @@
     9.4 -<?xml version="1.0"?>
     9.5 -<!-- Author: Reiner Sailer, Ray Valdez {sailer,rvaldez}@us.ibm.com  -->
     9.6 -<!--              This file defines the security labels, which can  -->
     9.7 -<!--              be attached to Domains and resources. Based on    -->
     9.8 -<!--              these labels, the access control module decides   -->
     9.9 -<!--              about sharing between Domains and about access    -->
    9.10 -<!--              of Domains to real resources.                     -->
    9.11 -
    9.12 -<SecurityLabelTemplate
    9.13 - xmlns="http://www.ibm.com"
    9.14 - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    9.15 - xsi:schemaLocation="http://www.ibm.com security_policy.xsd">
    9.16 -   <LabelHeader>
    9.17 -      <Name>ste-security_label_template</Name>
    9.18 -      <Date>2005-08-10</Date>
    9.19 -      <PolicyName>
    9.20 -         <Url>ste-security_policy.xml</Url>
    9.21 -         <Reference>abcdef123456abcdef</Reference>
    9.22 -      </PolicyName>
    9.23 -   </LabelHeader>
    9.24 -
    9.25 -   <SubjectLabels bootstrap="dom_SystemManagement">
    9.26 -      <!-- single ste typed domains            -->
    9.27 -      <!-- ACM enforces that only domains with -->
    9.28 -      <!-- the same type can share information -->
    9.29 -      <!--                                     -->
    9.30 -      <!-- Bootstrap label is assigned to Dom0 -->
    9.31 -      <VirtualMachineLabel>
    9.32 -      	<Name>dom_HomeBanking</Name>
    9.33 -         <SimpleTypeEnforcementTypes>
    9.34 -            <Type>ste_PersonalFinances</Type>
    9.35 -         </SimpleTypeEnforcementTypes>
    9.36 -      </VirtualMachineLabel>
    9.37 -
    9.38 -      <VirtualMachineLabel>
    9.39 -      	<Name>dom_Fun</Name>
    9.40 -         <SimpleTypeEnforcementTypes>
    9.41 -            <Type>ste_InternetInsecure</Type>
    9.42 -         </SimpleTypeEnforcementTypes>
    9.43 -      </VirtualMachineLabel>
    9.44 -
    9.45 -      <VirtualMachineLabel>
    9.46 -        <!-- donating some cycles to seti@home -->
    9.47 -      	<Name>dom_BoincClient</Name>
    9.48 -         <SimpleTypeEnforcementTypes>
    9.49 -            <Type>ste_DonatedCycles</Type>
    9.50 -         </SimpleTypeEnforcementTypes>
    9.51 -      </VirtualMachineLabel>
    9.52 -
    9.53 -      <!-- Domains with multiple ste types services; such domains   -->
    9.54 -      <!-- must keep the types inside their domain safely confined. -->
    9.55 -      <VirtualMachineLabel>
    9.56 -      	<Name>dom_SystemManagement</Name>
    9.57 -         <SimpleTypeEnforcementTypes>
    9.58 -            <!-- since dom0 needs access to every domain and -->
    9.59 -            <!-- resource right now ... -->
    9.60 -            <Type>ste_SystemManagement</Type>
    9.61 -            <Type>ste_PersonalFinances</Type>
    9.62 -            <Type>ste_InternetInsecure</Type>
    9.63 -            <Type>ste_DonatedCycles</Type>
    9.64 -            <Type>ste_PersistentStorageA</Type>
    9.65 -            <Type>ste_NetworkAdapter0</Type>
    9.66 -         </SimpleTypeEnforcementTypes>
    9.67 -      </VirtualMachineLabel>
    9.68 -
    9.69 -      <VirtualMachineLabel>
    9.70 -        <!-- serves persistent storage to other domains -->
    9.71 -      	<Name>dom_StorageDomain</Name>
    9.72 -         <SimpleTypeEnforcementTypes>
    9.73 -            <!-- access right to the resource (hard drive a) -->
    9.74 -            <Type>ste_PersistentStorageA</Type>
    9.75 -            <!-- can serve following types -->
    9.76 -            <Type>ste_PersonalFinances</Type>
    9.77 -            <Type>ste_InternetInsecure</Type>
    9.78 -         </SimpleTypeEnforcementTypes>
    9.79 -      </VirtualMachineLabel>
    9.80 -
    9.81 -      <VirtualMachineLabel>
    9.82 -        <!-- serves network access to other domains -->
    9.83 -      	<Name>dom_NetworkDomain</Name>
    9.84 -         <SimpleTypeEnforcementTypes>
    9.85 -            <!-- access right to the resource (ethernet card) -->
    9.86 -            <Type>ste_NetworkAdapter0</Type>
    9.87 -            <!-- can serve following types -->
    9.88 -            <Type>ste_PersonalFinances</Type>
    9.89 -            <Type>ste_InternetInsecure</Type>
    9.90 -            <Type>ste_DonatedCycles</Type>
    9.91 -         </SimpleTypeEnforcementTypes>
    9.92 -      </VirtualMachineLabel>
    9.93 -   </SubjectLabels>
    9.94 -
    9.95 -   <ObjectLabels>
    9.96 -      <ResourceLabel>
    9.97 -      	<Name>res_ManagementResource</Name>
    9.98 -         <SimpleTypeEnforcementTypes>
    9.99 -            <Type>ste_SystemManagement</Type>
   9.100 -         </SimpleTypeEnforcementTypes>
   9.101 -      </ResourceLabel>
   9.102 -
   9.103 -      <ResourceLabel>
   9.104 -      	<Name>res_HardDrive (hda)</Name>
   9.105 -         <SimpleTypeEnforcementTypes>
   9.106 -            <Type>ste_PersistentStorageA</Type>
   9.107 -         </SimpleTypeEnforcementTypes>
   9.108 -      </ResourceLabel>
   9.109 -
   9.110 -      <ResourceLabel>
   9.111 -      	<Name>res_LogicalDiskPartition1 (hda1)</Name>
   9.112 -         <SimpleTypeEnforcementTypes>
   9.113 -            <Type>ste_PersonalFinances</Type>
   9.114 -         </SimpleTypeEnforcementTypes>
   9.115 -      </ResourceLabel>
   9.116 -
   9.117 -      <ResourceLabel>
   9.118 -      	<Name>res_LogicalDiskPartition2 (hda2)</Name>
   9.119 -         <SimpleTypeEnforcementTypes>
   9.120 -            <Type>ste_InternetInsecure</Type>
   9.121 -         </SimpleTypeEnforcementTypes>
   9.122 -      </ResourceLabel>
   9.123 -
   9.124 -      <ResourceLabel>
   9.125 -      	<Name>res_EthernetCard</Name>
   9.126 -         <SimpleTypeEnforcementTypes>
   9.127 -            <Type>ste_NetworkAdapter0</Type>
   9.128 -         </SimpleTypeEnforcementTypes>
   9.129 -      </ResourceLabel>
   9.130 -
   9.131 -      <ResourceLabel>
   9.132 -      	<Name>res_SecurityToken</Name>
   9.133 -         <SimpleTypeEnforcementTypes>
   9.134 -            <Type>ste_PersonalFinances</Type>
   9.135 -         </SimpleTypeEnforcementTypes>
   9.136 -      </ResourceLabel>
   9.137 -
   9.138 -      <ResourceLabel>
   9.139 -      	<Name>res_GraphicsAdapter</Name>
   9.140 -         <SimpleTypeEnforcementTypes>
   9.141 -            <Type>ste_SystemManagement</Type>
   9.142 -         </SimpleTypeEnforcementTypes>
   9.143 -      </ResourceLabel>
   9.144 -   </ObjectLabels>
   9.145 -</SecurityLabelTemplate>
   9.146 -
    10.1 --- a/tools/security/policies/ste/ste-security_policy.xml	Sun Apr 23 09:20:31 2006 +0100
    10.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.3 @@ -1,27 +0,0 @@
    10.4 -<?xml version="1.0" encoding="UTF-8"?>
    10.5 -<!-- Author: Reiner Sailer, Ray Valdez {sailer,rvaldez}@us.ibm.com  -->
    10.6 -<!--             This file defines the security policies, which     -->
    10.7 -<!--             can be enforced by the Xen Access Control Module.  -->
    10.8 -<!--             Currently: Chinese Wall and Simple Type Enforcement-->
    10.9 -<SecurityPolicyDefinition xmlns="http://www.ibm.com"
   10.10 - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   10.11 - xsi:schemaLocation="http://www.ibm.com security_policy.xsd">
   10.12 -<PolicyHeader>
   10.13 -		<Name>ste-security_policy</Name>
   10.14 -		<Date>2005-08-10</Date>
   10.15 -</PolicyHeader>
   10.16 -<!--                                                        -->
   10.17 -<!-- example of a simple type enforcement policy definition -->
   10.18 -<!--                                                        -->
   10.19 -	<SimpleTypeEnforcement>
   10.20 -        <SimpleTypeEnforcementTypes>
   10.21 -            <Type>ste_SystemManagement</Type>   <!-- machine/security management -->
   10.22 -            <Type>ste_PersonalFinances</Type>   <!-- personal finances -->
   10.23 -            <Type>ste_InternetInsecure</Type>   <!-- games, active X, etc. -->
   10.24 -            <Type>ste_DonatedCycles</Type>      <!-- donation to BOINC/seti@home -->
   10.25 -            <Type>ste_PersistentStorageA</Type> <!-- domain managing the harddrive A-->
   10.26 -            <Type>ste_NetworkAdapter0</Type>    <!-- type of the domain managing ethernet adapter 0-->
   10.27 -        </SimpleTypeEnforcementTypes>
   10.28 -	</SimpleTypeEnforcement>
   10.29 -</SecurityPolicyDefinition>
   10.30 -