Allow removal of labels on suspended domain
PATCH 1/1 Allow removal of labels on suspended domain
This patch enables the removal of a label from a suspended domain. This is similar to changing a label which is already supported.
Signed-off-by Stefan Berger <[email protected]>
xen-unstable.hg/tools/python/xen/xend/XendDomainInfo.py +2 -2
@@ -2891,9 +2891,9 @@ class XendDomainInfo: DOM_STATES[state]) return (-xsconstants.XSERR_VM_WRONG_STATE, "", "", 0) - # Remove security label. Works only for halted domains + # Remove security label. Works only for halted or suspended domains if not seclab or seclab == "": - if state not in [ DOM_STATE_HALTED ]: + if state not in [ DOM_STATE_HALTED, DOM_STATE_SUSPENDED ]: return (-xsconstants.XSERR_VM_WRONG_STATE, "", "", 0) if self.info.has_key('security_label'):
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel