Skip to contentSkip to conversation

Enable labeling of resources as inaccessible

PATCH New Stefan Berger 1 participant 1 message Jun 13, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Enable labeling of resources as inaccessible

This patch enables the labeling of (disk-type) resources with the special label __INACCESSIBLE__ to prevent unlabeled domains from accessing them.

xen-unstable.hg/tools/python/xen/util/xsconstants.py +4 -2
Index: root/xen-unstable.hg/tools/python/xen/util/xsconstants.py
===================================================================
@@ -101,8 +101,10 @@ def xserr2string(err):
     return "Unknown XSERR code '%s'." % (hex(err))
 
 # Policy identifiers used in labels
-ACM_POLICY_ID = "ACM"
+ACM_POLICY_ID = 'ACM'
 
-INVALID_POLICY_PREFIX = "INV_"
+INVALID_POLICY_PREFIX = 'INV_'
 
 INVALID_SSIDREF = 0xFFFFFFFF
+
+XS_INACCESSIBLE_LABEL = '__INACCESSIBLE__'
xen-unstable.hg/tools/python/xen/util/xsm/acm/acm.py +38 -20

115 lines not on this page · raw message

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel