17.20.17. Attaching a Security Label

17.20.17. Attaching a Security Label

You can use xm to attach a security label to a domain configuration file (this example uses the SoftwareDev label):

 
xm addlabel myconfig.xm dom_SoftwareDev

Attaching the security label ensures that the domain does not share data with other non-SoftwareDev user domains. This example includes the myconfig.xm configuration file represents a domain that runs workloads related to the SoftwareDev's infrastructure.

Edit your respective configuration file and verify that the addlabel command correctly added the access_control entry (and associated parameters) to the end of the file:

kernel = "/boot/vmlinuz — 2.6.16 —xen"
ramdisk="/boot/U1_SoftwareDev_ramdisk.img"
memory = 164
name = "SoftwareDev"
vif = [ '' ]
dhcp = "dhcp"
access_control = [policy=example.chwall_ste.client_v1, label=dom_SoftwareDev]

If anything does not appear correct, make the necessary modifications and save the file.