Received: from eggs.gnu.org ([208.118.235.92]:54163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCG9O-0001DI-Eq for qemu-devel@nongnu.org; Thu, 13 Sep 2012 16:36:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCG9N-0004XD-3C for qemu-devel@nongnu.org; Thu, 13 Sep 2012 16:36:38 -0400 Received: from e24smtp01.br.ibm.com ([32.104.18.85]:36382) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCG9M-0004X5-O1 for qemu-devel@nongnu.org; Thu, 13 Sep 2012 16:36:37 -0400 Received: from /spool/local by e24smtp01.br.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 13 Sep 2012 17:36:33 -0300 Received: from d24relay02.br.ibm.com (d24relay02.br.ibm.com [9.13.184.26]) by d24dlp02.br.ibm.com (Postfix) with ESMTP id 94D861DC0051 for ; Thu, 13 Sep 2012 16:36:32 -0400 (EDT) Received: from d24av01.br.ibm.com (d24av01.br.ibm.com [9.8.31.91]) by d24relay02.br.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q8DKZQFg20512918 for ; Thu, 13 Sep 2012 17:35:27 -0300 Received: from d24av01.br.ibm.com (loopback [127.0.0.1]) by d24av01.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q8DKaVsu012510 for ; Thu, 13 Sep 2012 17:36:31 -0300 Date: Thu, 13 Sep 2012 17:36:25 -0300 From: Marcelo Cerri Message-ID: <20120913203437.GA11195@oc8526070481.ibm.com> References: <1345068639-19528-1-git-send-email-mhcerri@linux.vnet.ibm.com> <504F7F52.2010809@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <504F7F52.2010809@linux.vnet.ibm.com> Subject: Re: [Qemu-devel] [libvirt] [PATCH v4 0/5] Per-guest configurable user/group for QEMU processes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: berrange@redhat.com, mprivozn@redhat.com, libvir-list@redhat.com, eblake@redhat.com, qemu-devel , Anthony Liguori , Daniel Veillard Cc: Corey Bryant , gcwilson@us.ibm.com, bryntcor@us.ibm.com Hi, Any comments about that? Regards, Marcelo On Tue, Sep 11, 2012 at 02:13:38PM -0400, Corey Bryant wrote: > Are there any other requirements that need to be taken care of to > enable execution of QEMU guests under separate unprivileged user IDs > (ie. DAC isolation)? > > At this point, this patch series (Per-guest configurable user/group > for QEMU processes) is upstream, allowing libvirt to execute guests > under separate unprivileged user IDs. Additionally, the QEMU bridge > helper series is upstream, allowing QEMU to allocate a tap device > and attach it to a bridge when run under an unprivileged user ID (http://www.redhat.com/archives/libvir-list/2012-August/msg00277.html). > > Is there any other feature in QEMU that requires QEMU to be run as root? > > -- > Regards, > Corey > > On 08/15/2012 06:10 PM, Marcelo Cerri wrote: > >This is a v4 patch series that updates the libvirt's security driver mechanism to support per-guest configurable user and group for QEMU processes running together with other security drivers, such as SELinux and AppArmor. > > > >Marcelo Cerri (5): > > Internal refactory of data structures > > Multiple security drivers in XML data > > Update security layer to handle many security labels > > Support for multiple default security drivers in QEMU config > > Update the remote API > > > > daemon/remote.c | 63 ++++ > > docs/formatdomain.html.in | 11 +- > > docs/schemas/capability.rng | 18 +- > > docs/schemas/domaincommon.rng | 30 ++- > > include/libvirt/libvirt.h.in | 2 + > > python/generator.py | 1 + > > src/conf/capabilities.c | 17 +- > > src/conf/capabilities.h | 6 +- > > src/conf/domain_audit.c | 14 +- > > src/conf/domain_conf.c | 343 +++++++++++++++----- > > src/conf/domain_conf.h | 20 +- > > src/driver.h | 4 + > > src/libvirt.c | 47 +++ > > src/libvirt_private.syms | 5 + > > src/libvirt_public.syms | 1 + > > src/lxc/lxc_conf.c | 8 +- > > src/lxc/lxc_controller.c | 8 +- > > src/lxc/lxc_driver.c | 11 +- > > src/lxc/lxc_process.c | 23 +- > > src/qemu/qemu.conf | 6 +- > > src/qemu/qemu_conf.c | 38 ++- > > src/qemu/qemu_conf.h | 2 +- > > src/qemu/qemu_driver.c | 218 +++++++++++--- > > src/qemu/qemu_process.c | 50 ++- > > src/remote/remote_driver.c | 46 +++ > > src/remote/remote_protocol.x | 17 +- > > src/remote_protocol-structs | 11 + > > src/security/security_apparmor.c | 118 +++++-- > > src/security/security_dac.c | 324 +++++++++++++++++-- > > src/security/security_manager.c | 101 +++++-- > > src/security/security_manager.h | 8 +- > > src/security/security_selinux.c | 263 +++++++++++----- > > src/security/security_stack.c | 237 +++++++++----- > > src/security/security_stack.h | 13 + > > src/test/test_driver.c | 11 +- > > .../qemuxml2argv-seclabel-dynamic-override.xml | 4 +- > > .../qemuxml2argv-seclabel-dynamic.xml | 2 +- > > 37 files changed, 1653 insertions(+), 448 deletions(-) > > > >-- > >libvir-list mailing list > >libvir-list@redhat.com > >https://www.redhat.com/mailman/listinfo/libvir-list > >