[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] ioemu: Disable format auto-probing in monitor command change



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1213778354 -3600
# Node ID 9493a853df9ef0c17c6fb12efdcc86c5d67c7e03
# Parent  a1c98534418bc09abc2fa970200248f6e4723127
ioemu: Disable format auto-probing in monitor command change

Format auto-probing of writable images is a security hole.  The last
known remaining instance is monitor command change.  Disable probing
there and use raw.  This breaks change for images in all other
formats.

Signed-off-by: Markus Armbruster <armbru@xxxxxxxxxx>
---
 tools/ioemu/monitor.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r a1c98534418b -r 9493a853df9e tools/ioemu/monitor.c
--- a/tools/ioemu/monitor.c     Wed Jun 18 09:38:11 2008 +0100
+++ b/tools/ioemu/monitor.c     Wed Jun 18 09:39:14 2008 +0100
@@ -387,7 +387,7 @@ static void do_change_block(const char *
     }
     if (eject_device(bs, 0) < 0)
         return;
-    bdrv_open(bs, filename, 0);
+    bdrv_open2(bs, filename, 0, &bdrv_raw);
     if (bdrv_is_encrypted(bs)) {
         term_printf("%s is encrypted.\n", device);
         for(i = 0; i < 3; i++) {

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.