debuggers.hg
changeset 17912:9493a853df9e
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@redhat.com>
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@redhat.com>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Wed Jun 18 09:39:14 2008 +0100 (2008-06-18) |
parents | a1c98534418b |
children | 97e02365a781 |
files | tools/ioemu/monitor.c |
line diff
1.1 --- a/tools/ioemu/monitor.c Wed Jun 18 09:38:11 2008 +0100 1.2 +++ b/tools/ioemu/monitor.c Wed Jun 18 09:39:14 2008 +0100 1.3 @@ -387,7 +387,7 @@ static void do_change_block(const char * 1.4 } 1.5 if (eject_device(bs, 0) < 0) 1.6 return; 1.7 - bdrv_open(bs, filename, 0); 1.8 + bdrv_open2(bs, filename, 0, &bdrv_raw); 1.9 if (bdrv_is_encrypted(bs)) { 1.10 term_printf("%s is encrypted.\n", device); 1.11 for(i = 0; i < 3; i++) {