Download Chapter 3. The Xen Hypervisor

Transcript
</SimpleTypeEnforcement>
<ChineseWall priority="PrimaryPolicyComponent">
<ChineseWallTypes>
<Type>SystemManagement</Type>
<Type> CompetitorA </Type>
<Type> CompetitorB </Type>
<Type>NonCompetitor</Type>
</ChineseWallTypes>
<ConflictSets>
<Conflict name="Disallow">
<Type> CompetitorA </Type>
<Type> CompetitorB </Type>
</Conflict>
</ConflictSets>
</ChineseWall>
One item that you might notice listed in the XML that was not in the policy creation tool is the SystemManagement type. This
organizations are listed in the Chinese Wall element. These are the valid types for defining conflict sets found in the next blo
from executing on the same physical hardware. Execution of the xm create command on the second VM while the other VM
(1, 'Operation not permitted')." Migration of VMs that are not labeled or that are labeled with conflicting types will also be de
migration, Xen would deny it.
Now that we have created our XML, we need to turn the XML into a binary representation that we can load at boot time. To
xensec_xml2bin. Listing 11.19 shows how to use this tool.
Listing 11.19. Creating a Binary File from XML
Code View:
[root@dom0]# xensec_xml2bin CompetitorAB
arg=CompetitorAB
Validating policy file /etc/xen/acm-security/policies/CompetitorAB-security_policy.xml...
XML Schema /etc/xen/acm-security/policies/security_policy.xsd valid.
Creating ssid mappings ...
Policy Reference name (Url): CompetitorAB
Creating label mappings ...
Max chwall labels: 5
Max chwall-types:
4
Max chwall-ssids:
5
Max ste labels:
9
Max ste-types:
4
Max ste-ssids:
9
[root@dom0]#
This generates a binary file, CompetitorAB.bin , in the same directory as the XML file, /etc/xen/acm-security/policies
Xen can enforce the policy from the start of execution. To accomplish this task we just need to copy our new CompetitorAB.
11.20 .
Listing 11.20. Copying the Binary File to the Boot Directory