All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jim Fehlig <jfehlig@suse.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: ian.jackson@eu.citrix.com, xen-devel@lists.xensource.com,
	wei.liu2@citrix.com, ian.campbell@citrix.com
Subject: Re: [PATCH v2] run QEMU as non-root
Date: Fri, 15 May 2015 11:58:30 -0600	[thread overview]
Message-ID: <555633C6.6080007@suse.com> (raw)
In-Reply-To: <1431690240-15873-1-git-send-email-stefano.stabellini@eu.citrix.com>

Stefano Stabellini wrote:
> Try to use "xen-qemudepriv-$domname" first, then "xen-qemudepriv-base" +
> domid, finally "xen-qemudepriv-shared" and root if everything else fails.
>
> The uids need to be manually created by the user or, more likely, by the
> xen package maintainer.
>   

FYI, the libvirt qemu driver supports specifying a global uid:gid for
qemu processes in /etc/libvirt/qemu.conf.  The uid:gid can also be tuned
per-domain with something like

  <seclabel type='static' model='dac' relabel='yes'>
    <label>uid:gid</label>
  </seclabel>

The model is a bit different in Xen where only the associated qemu (not
the entire domain) would be running as uid:gid, so I'm not sure if this
is something you want to expose through libxl.

Regards,
Jim

  parent reply	other threads:[~2015-05-15 17:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-15 11:44 [PATCH v2] run QEMU as non-root Stefano Stabellini
2015-05-15 14:28 ` Ian Jackson
2015-05-15 14:40   ` Ian Campbell
2015-05-15 17:58 ` Jim Fehlig [this message]
2015-05-15 18:07   ` Stefano Stabellini

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=555633C6.6080007@suse.com \
    --to=jfehlig@suse.com \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.