From: Stefano Stabellini Subject: Re: [PATCH v9] run QEMU as non-root Date: Thu, 5 Nov 2015 12:48:06 +0000 Message-ID: References: <1446467448-10105-1-git-send-email-stefano.stabellini@eu.citrix.com> <1446569376.16178.33.camel@citrix.com> <1446571036.16178.49.camel@citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="1342847746-477631963-1446727693=:13541" Return-path: In-Reply-To: <1446571036.16178.49.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: wei.liu2@citrix.com, jfehlig@suse.com, xen-devel@lists.xensource.com, Ian.Jackson@eu.citrix.com, Stefano Stabellini List-Id: xen-devel@lists.xenproject.org --1342847746-477631963-1446727693=:13541 Content-Type: text/plain; charset="UTF-8" Content-Length: 2628 Content-Transfer-Encoding: quoted-printable On Tue, 3 Nov 2015, Ian Campbell wrote: > On Tue, 2015-11-03 at 16:49 +0000, Ian Campbell wrote: > > On Mon, 2015-11-02 at 12:30 +0000, Stefano Stabellini wrote: > > > Try to use "xen-qemudepriv-domid$domid" first, then > > > "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. > > > > > > Expose a device_model_user setting in libxl_domain_build_info, so that > > > opinionated callers, such as libvirt, can set any user they like. Do > > > not > > > fall back to root if device_model_user is set. Users can also set > > > device_model_user by hand in the xl domain config file. > > > > > > QEMU is going to setuid and setgid to the user ID and the group ID of > > > the specified user, soon after initialization, before starting to deal > > > with any guest IO. > > > > > > To actually secure QEMU when running in Dom0, we need at least to > > > deprivilege the privcmd and xenstore interfaces, this is just the first > > > step in that direction. > > > > > > Signed-off-by: Stefano Stabellini > > > > Acked-by: Ian Campbell > > There were some minor conflicts against some patches committed at the start > of October. I had fixed them up (I think) but then I noticed > that=C2=A0docs/misc/qemu-deprivilege.txt in my working tree wasn't actually > committed. > > Since this patch refers to it, but didn't include it I checked before > acking that it was already in tree some how, but didn't realise it wasn't > actually committed (somehow, not sure how). Was it supposed to be in this > patch or was it supposed to be in some earlier patch=3F > > In any case given something odd is clearly going on I don't want to just > commit some random version of that doc which I just found in my working > directory along with this patch. Please can you resubmit with that file > included (or in a precursor patch). Done, see v10 > Also please check the coding style of the comment in libxl.h, the "/*" > should be by itself. Sorry I forgot this change! Feel free to fix it as you commit if that's OK for you. > Thanks, > Ian. > > > > > (based on previous plus eyeballing only the changes from: > > > =C2=A0 > > > Changes in v9: > > > - add a device_model_user option to the xl domain config file > > > > Ian. > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xen.org > > http://lists.xen.org/xen-devel > --1342847746-477631963-1446727693=:13541 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --1342847746-477631963-1446727693=:13541--