Skip to contentSkip to conversation

Allow removal of labels on suspended domain

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

lore
Share & tools
lore
#0 lore raw

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.

xen-unstable.hg/tools/python/xen/xend/XendDomainInfo.py +2 -2
Index: root/xen-unstable.hg/tools/python/xen/xend/XendDomainInfo.py
===================================================================
@@ -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