From: Anthony Liguori <aliguori@us.ibm.com>
To: Andi Kleen <andi@firstfloor.org>
Cc: Jes.Sorensen@redhat.com, lcapitulino@redhat.com,
agl@linux.vnet.ibm.com, Michael Roth <mdroth@linux.vnet.ibm.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v4][ 5/7] guest agent: add guest agent RPCs/commands
Date: Sat, 04 Jun 2011 17:29:41 -0500 [thread overview]
Message-ID: <4DEAB1D5.4050106@us.ibm.com> (raw)
In-Reply-To: <m2tyc5s6kn.fsf@firstfloor.org>
On 06/04/2011 03:08 PM, Andi Kleen wrote:
> Michael Roth<mdroth@linux.vnet.ibm.com> writes:
>> +
>> +int64_t qmp_guest_file_open(const char *filename, const char *mode, Error **err)
>> +{
>> + FILE *fh;
>> + int fd, ret;
>> + int64_t id = -1;
>> +
>> + if (!logging_enabled()) {
>> + error_set(err, QERR_QGA_LOGGING_FAILED);
>> + goto out;
>> + }
>> + slog("guest-file-open called, filename: %s, mode: %s", filename, mode);
>> + fh = fopen(filename, mode);
>> + if (!fh) {
>> + error_set(err, QERR_OPEN_FILE_FAILED, filename);
>> + goto out;
>> + }
>
> Does this really allow a guest to open any host file ?!?
It does the opposite. The host can open files in the guest. Since the
host can see the disk image of the guest anyway, it already could do
this albeit it in a more convoluted way.
Regards,
Anthony Liguroi
> Have you considered all the security implications of that?
>
> -Andi
>
next prev parent reply other threads:[~2011-06-04 22:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-03 22:47 [Qemu-devel] [QAPI+QGA 3/3] QEMU Guest Agent (virtagent) v4 Michael Roth
2011-06-03 22:48 ` [Qemu-devel] [PATCH v4][ 1/7] guest agent: worker thread class Michael Roth
2011-06-07 19:11 ` Anthony Liguori
2011-06-03 22:48 ` [Qemu-devel] [PATCH v4][ 2/7] guest agent: command state class Michael Roth
2011-06-03 22:48 ` [Qemu-devel] [PATCH v4][ 3/7] guest agent: qemu-ga daemon Michael Roth
2011-06-03 22:48 ` [Qemu-devel] [PATCH v4][ 4/7] guest agent: add error class for QERR_QGA_LOGGING_FAILED Michael Roth
2011-06-03 22:48 ` [Qemu-devel] [PATCH v4][ 5/7] guest agent: add guest agent RPCs/commands Michael Roth
2011-06-04 20:08 ` Andi Kleen
2011-06-04 22:29 ` Anthony Liguori [this message]
2011-06-03 22:48 ` [Qemu-devel] [PATCH v4][ 6/7] guest agent: add guest agent commands schema file Michael Roth
2011-06-03 22:48 ` [Qemu-devel] [PATCH v4][ 7/7] guest agent: Makefile, build qemu-ga Michael Roth
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=4DEAB1D5.4050106@us.ibm.com \
--to=aliguori@us.ibm.com \
--cc=Jes.Sorensen@redhat.com \
--cc=agl@linux.vnet.ibm.com \
--cc=andi@firstfloor.org \
--cc=lcapitulino@redhat.com \
--cc=mdroth@linux.vnet.ibm.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).