- name and simplify security policies
PATCH 1/1 - name and simplify security policies
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 <[email protected]>
--- tools/security/policies/chwall/chwall-security_label_template.xml | 76 --- tools/security/policies/chwall/chwall-security_policy.xml | 36 - tools/security/policies/chwall_ste/chwall_ste-security_label_template.xml | 167 -------- tools/security/policies/chwall_ste/chwall_ste-security_policy.xml | 49 -- tools/security/policies/null/null-security_label_template.xml | 24 - tools/security/policies/null/null-security_policy.xml | 14 tools/security/policies/ste/ste-security_label_template.xml | 143 ------- tools/security/policies/ste/ste-security_policy.xml | 27 - tools/security/policies/example/chwall/client_v1-security_policy.xml | 90 ++++ tools/security/policies/example/chwall_ste/client_v1-security_policy.xml | 194 ++++++++++ tools/security/policies/example/ste/client_v1-security_policy.xml | 149 +++++++ tools/security/policies/security_policy.xsd | 75 +-- 12 files changed, 461 insertions(+), 583 deletions(-)
tools/security/policies/chwall/chwall-security_label_template.xml deleted +0 -76
@@ -1,76 +0,0 @@ -<?xml version="1.0"?> -<!-- Author: Reiner Sailer, Ray Valdez {sailer,rvaldez}@us.ibm.com --> -<!-- This file defines the security labels, which can --> -<!-- be attached to Domains and resources. Based on --> -<!-- these labels, the access control module decides --> -<!-- about sharing between Domains and about access --> -<!-- of Domains to real resources. --> - -<SecurityLabelTemplate - xmlns="http://www.ibm.com" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.ibm.com security_policy.xsd"> - <LabelHeader> - <Name>chwall-security_label_template</Name> - <Date>2005-08-10</Date> - <PolicyName> - <Url>chwall-security_policy.xml</Url> - <Reference>abcdef123456abcdef</Reference> - </PolicyName> - </LabelHeader> - - <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> - <ChineseWallTypes> - <Type>cw_Sensitive</Type> - </ChineseWallTypes> - </VirtualMachineLabel> - - <VirtualMachineLabel> - <Name>dom_Fun</Name> - <ChineseWallTypes> - <Type>cw_Distrusted</Type> - </ChineseWallTypes> - </VirtualMachineLabel> - - <VirtualMachineLabel> - <!-- donating some cycles to seti@home --> - <Name>dom_BoincClient</Name> - <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> - <ChineseWallTypes> - <Type>cw_SystemManagement</Type> - </ChineseWallTypes> - </VirtualMachineLabel> - - <VirtualMachineLabel> - <!-- serves persistent storage to other domains --> - <Name>dom_StorageDomain</Name> - <ChineseWallTypes> - <Type>cw_SystemManagement</Type> - </ChineseWallTypes> - </VirtualMachineLabel> - - <VirtualMachineLabel> - <!-- serves network access to other domains --> - <Name>dom_NetworkDomain</Name> - <ChineseWallTypes> - <Type>cw_SystemManagement</Type> - </ChineseWallTypes> - </VirtualMachineLabel> - </SubjectLabels> -</SecurityLabelTemplate> -
tools/security/policies/chwall/chwall-security_policy.xml deleted +0 -36
@@ -1,36 +0,0 @@ -<?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> - <Name>chwall-security_policy</Name> - <Date>2005-08-10</Date> -</PolicyHeader> -<!-- --> -<!-- 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> -</SecurityPolicyDefinition> -
tools/security/policies/chwall_ste/chwall_ste-security_label_template.xml deleted +0 -167
167 lines not on this page · raw message
tools/security/policies/chwall_ste/chwall_ste-security_policy.xml deleted +0 -49
49 lines not on this page · raw message
tools/security/policies/example/chwall/client_v1-security_policy.xml new file +90 -0
90 lines not on this page · raw message
tools/security/policies/example/chwall_ste/client_v1-security_policy.xml new file +194 -0
194 lines not on this page · raw message
tools/security/policies/example/ste/client_v1-security_policy.xml new file +149 -0
149 lines not on this page · raw message
tools/security/policies/null/null-security_label_template.xml deleted +0 -24
@@ -1,24 +0,0 @@ -<?xml version="1.0"?> -<!-- Author: Reiner Sailer, Ray Valdez {sailer,rvaldez}@us.ibm.com --> -<!-- This file defines the security labels, which can --> -<!-- be attached to Domains and resources. Based on --> -<!-- these labels, the access control module decides --> -<!-- about sharing between Domains and about access --> -<!-- of Domains to real resources. --> - -<SecurityLabelTemplate - xmlns="http://www.ibm.com" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.ibm.com security_policy.xsd"> - <LabelHeader> - <Name>null-security_label_template</Name> - - <Date>2005-08-10</Date> - <PolicyName> - <Url>null-security_policy.xml</Url> - - <Reference>abcdef123456abcdef</Reference> - </PolicyName> - </LabelHeader> -</SecurityLabelTemplate> -
tools/security/policies/null/null-security_policy.xml deleted +0 -14
@@ -1,14 +0,0 @@ -<?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> - <Name>null-security_policy</Name> - <Date>2005-08-10</Date> -</PolicyHeader> -</SecurityPolicyDefinition> -
tools/security/policies/security_policy.xsd +28 -47
120 lines not on this page · raw message
tools/security/policies/ste/ste-security_label_template.xml deleted +0 -143
143 lines not on this page · raw message
tools/security/policies/ste/ste-security_policy.xml deleted +0 -27
@@ -1,27 +0,0 @@ -<?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> - <Name>ste-security_policy</Name> - <Date>2005-08-10</Date> -</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> -</SecurityPolicyDefinition> -
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel