From: Dor Laor <dlaor@redhat.com>
To: "Daniel P. Berrange" <berrange@redhat.com>
Cc: aliguori@us.ibm.com, Michael Roth <mdroth@linux.vnet.ibm.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/2] guest agent: add RPC blacklist command-line option
Date: Wed, 07 Dec 2011 14:12:17 +0200 [thread overview]
Message-ID: <4EDF5821.8080302@redhat.com> (raw)
In-Reply-To: <20111207105232.GF9888@redhat.com>
On 12/07/2011 12:52 PM, Daniel P. Berrange wrote:
> On Wed, Dec 07, 2011 at 12:34:01PM +0200, Dor Laor wrote:
>> On 12/07/2011 06:03 AM, Michael Roth wrote:
>>> This adds a command-line option, -b/--blacklist, that accepts a
>>> comma-seperated list of RPCs to disable, or prints a list of
>>> available RPCs if passed "?".
>>>
>>> In consequence this also adds general blacklisting and RPC listing
>>> facilities to the new QMP dispatch/registry facilities, should the
>>> QMP monitor ever have a need for such a thing.
>>
>> Beyond run time disablement, how easy it is to compile out some of
>> the general commands such as exec/file-handling?
>>
>> Security certifications like common criteria usually ask to compile
>> out anything that might tamper security.
>
> I don't think that's really relevant/needed. As discussed on the
> call yesterday, this is security theatre, because nothing can prevent
> the host admin from accessing guest RAM or disk data. AFAIK the
> virtualization related security certifications acknowledge this
> already& don't make any claims about security of guests against
> a malicious host admin. In any case, a suitable SELinux policy for
> the guest agent could prevent arbitrary file/binary access via
> generic 'exec' / 'file-read' commands, in a manner that is sufficient
> to satisfy security certications.
I absolutely agree that the hypervisor can tweak the guest in multiple
ways. Nevertheless there are two reasons I asked it:
1. Reduce code and noise from security reviewers eyes.
We were asked to do exactly that for other qemu functionality that
is included but does not run at all. It's just makes the review
faster.
2. Every piece of code is a risk for exploit
Imagine that a bug/leak/use-after-free in the blacklist command or
the exec command on qemu exists and allows attacked to gain control
of qemu.
>
> Regards,
> Daniel
next prev parent reply other threads:[~2011-12-07 12:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-07 4:03 [Qemu-devel] [PATCH 1/2] guest agent: add RPC blacklist command-line option Michael Roth
2011-12-07 4:03 ` [Qemu-devel] [PATCH 2/2] guest agent: add supported command list to guest-info RPC Michael Roth
2011-12-07 10:34 ` [Qemu-devel] [PATCH 1/2] guest agent: add RPC blacklist command-line option Dor Laor
2011-12-07 10:52 ` Daniel P. Berrange
2011-12-07 12:12 ` Dor Laor [this message]
2011-12-07 16:45 ` Michael Roth
2011-12-08 22:53 ` Dor Laor
2011-12-08 23:38 ` Michael Roth
2011-12-12 23:34 ` Anthony Liguori
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=4EDF5821.8080302@redhat.com \
--to=dlaor@redhat.com \
--cc=aliguori@us.ibm.com \
--cc=berrange@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).