Enable labeling of resources as inaccessible
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.
Signed-off-by Stefan Berger <[email protected]>
xen-unstable.hg/tools/python/xen/util/xsconstants.py +4 -2
@@ -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