From: "Daniel P. Berrange" <berrange@redhat.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel][PATCH] Qemu image over raw devices
Date: Tue, 16 Dec 2008 10:53:39 +0000 [thread overview]
Message-ID: <20081216105339.GA20024@redhat.com> (raw)
In-Reply-To: <49477773.3060405@suse.de>
On Tue, Dec 16, 2008 at 10:40:03AM +0100, Kevin Wolf wrote:
> Shahar Frank schrieb:
> > ----- "Kevin Wolf" <kwolf@suse.de> wrote:
> >
> >> Shahar Frank schrieb:
> >>> The following patch enables QEMU to create and use images with any
> >>> format on top of a raw device. Note that -f <format> is not enough
> >> for
> >>> bcking files support.
> >> When would I need to explicitly specify the type of a backing file?
> >
> > The patch doesn't allow you to specify a type (image format). It allows you to force probing. This is done to override the default block-device => raw semantics.
>
> Ok, I see. But didn't we want to get rid of the probing whenever
> possible because you can't tell raw files from whatever other format
> reliably?
Autoprobing of formats is usally a security flaw. ie, host admin configures
the guest with raw file, but autoprobing is enabled. Guest admin now
writes magic into their disk to match the qcow header and reboots, qemu
now autoprobes the guest's disk as a grow on demand qcow format, letting
them basically create any size disk they like beyond the initial raw file
allocation. Even worse the guest could admin could have written a backing
file location into the header and thus more or less get access to any file
they like on the host. Autoprobing: just say no.
NB, I'm talking about context of qemu here, not qemu-img which is all
under host admin's control anyway so not an issue.
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
next prev parent reply other threads:[~2008-12-16 10:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <571317069.373331229413498662.JavaMail.root@zmail02.collab.prod.int.phx2.redhat.com>
2008-12-16 7:50 ` [Qemu-devel][PATCH] Qemu image over raw devices Shahar Frank
2008-12-16 9:40 ` Kevin Wolf
2008-12-16 10:21 ` Shahar Frank
2008-12-16 12:10 ` Kevin Wolf
2008-12-16 12:55 ` Shahar Frank
2008-12-17 12:57 ` Kevin Wolf
2008-12-18 17:20 ` Shahar Frank
2008-12-16 10:53 ` Daniel P. Berrange [this message]
2008-12-15 14:04 Shahar Frank
2008-12-15 18:17 ` Kevin Wolf
2008-12-16 11:15 ` Daniel P. Berrange
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081216105339.GA20024@redhat.com \
--to=berrange@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).