mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
acm: Allow remove of labels from suspended domains.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
This commit is contained in:
1 parent
3e22cc46bb
commit
4c46d69b29
1 file changed
+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'):
|
||||
|
||||