mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
xm: When dumping core of an errant domain do not unpause after the
dump. This could allow the domain to e.g., access disks after fail-over. Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
This commit is contained in:
1 parent
739fe1e943
commit
b6eb51444c
1 file changed
+6
-6
@@ -1294,13 +1294,13 @@ def xm_dump_core(args):
|
||||
try:
|
||||
print "Dumping core of domain: %s ..." % str(dom)
|
||||
server.xend.domain.dump(dom, filename, live, crash)
|
||||
finally:
|
||||
if not live and ds == DOM_STATE_RUNNING:
|
||||
server.xend.domain.unpause(dom)
|
||||
|
||||
if crash:
|
||||
print "Destroying domain: %s ..." % str(dom)
|
||||
server.xend.domain.destroy(dom)
|
||||
if crash:
|
||||
print "Destroying domain: %s ..." % str(dom)
|
||||
server.xend.domain.destroy(dom)
|
||||
finally:
|
||||
if not live and not crash and ds == DOM_STATE_RUNNING:
|
||||
server.xend.domain.unpause(dom)
|
||||
|
||||
def xm_rename(args):
|
||||
arg_check(args, "rename", 2)
|
||||
|
||||