qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: "Philippe Mathieu-Daudé" <philmd@redhat.com>,
	qemu-devel@nongnu.org, "Stefan Hajnoczi" <stefanha@redhat.com>
Subject: Re: [Qemu-devel] [RFC PATCH-for-4.2] tracing: Allow to tune tracing options via the environment
Date: Mon, 8 Jul 2019 10:34:00 +0100	[thread overview]
Message-ID: <20190708093400.GB3082@redhat.com> (raw)
In-Reply-To: <874l3zhktx.fsf@dusky.pond.sub.org>

On Sat, Jul 06, 2019 at 06:02:18AM +0200, Markus Armbruster wrote:
> Philippe Mathieu-Daudé <philmd@redhat.com> writes:
> 
> > On 7/5/19 3:19 PM, Markus Armbruster wrote:
> >> Philippe Mathieu-Daudé <philmd@redhat.com> writes:
> >>> On 7/5/19 10:07 AM, Stefan Hajnoczi wrote:
> >>>> On Thu, Jul 04, 2019 at 11:28:37AM +0100, Daniel P. Berrangé wrote:
> >>>>> On Thu, Jul 04, 2019 at 11:24:57AM +0100, Stefan Hajnoczi wrote:
> [...]
> >>>>>> What is the concern about adding these environment variables to QEMU?
> >>>>>>
> >>>>>> It is convenient to be able to use tracing even if QEMU is invoked by
> >>>>>> something you cannot modify/control.
> >>>>>>
> >>>>>> The main issues I see with environment variables are:
> >>>>>>
> >>>>>> 1. Security.  Is there a scenario where an attacker can use environment
> >>>>>>    variables to influence the behavior of a QEMU process running at a
> >>>>>>    different trust level?
> >> 
> >> The common (and sad) solution for this is to require whatever runs $PROG
> >> at a different trust level to scrub the environment.
> >
> > I hope people concerned by security build QEMU with the NOP trace backend.
> 
> I sure hope at least one of our tracing backends (other than nop) can be
> used safely in production.

AFAIK, *all* of the trace backends are safe for use in production. The
only questions are around performance in production.  If anyone knows of
any security problems with specific backends we should either address them,
or document the backend is unsafe.

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|


  reply	other threads:[~2019-07-08  9:35 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-03 17:10 [Qemu-devel] [RFC PATCH-for-4.2] tracing: Allow to tune tracing options via the environment Philippe Mathieu-Daudé
2019-07-03 17:25 ` Daniel P. Berrangé
2019-07-03 17:29   ` Philippe Mathieu-Daudé
2019-07-04 10:24   ` Stefan Hajnoczi
2019-07-04 10:28     ` Daniel P. Berrangé
2019-07-05  8:07       ` Stefan Hajnoczi
2019-07-05  9:48         ` Philippe Mathieu-Daudé
2019-07-05 13:19           ` Markus Armbruster
2019-07-05 17:53             ` Philippe Mathieu-Daudé
2019-07-06  4:02               ` Markus Armbruster
2019-07-08  9:34                 ` Daniel P. Berrangé [this message]
2019-07-08 10:27                   ` Philippe Mathieu-Daudé
2019-07-08 10:38                     ` Daniel P. Berrangé
2019-07-09  5:53                       ` Markus Armbruster
2019-07-09  7:58                         ` Stefan Hajnoczi
2019-07-03 21:58 ` no-reply

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=20190708093400.GB3082@redhat.com \
    --to=berrange@redhat.com \
    --cc=armbru@redhat.com \
    --cc=philmd@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    /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).