From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v6] run QEMU as non-root Date: Thu, 9 Jul 2015 11:31:39 +0100 Message-ID: <1436437899.23508.98.camel@citrix.com> References: <1435755052-19447-1-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1435755052-19447-1-git-send-email-stefano.stabellini@eu.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: Stefano Stabellini Cc: wei.liu2@citrix.com, xen-devel@lists.xensource.com, Ian.Jackson@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Wed, 2015-07-01 at 13:50 +0100, Stefano Stabellini wrote: > @@ -878,6 +908,33 @@ static char ** libxl__build_device_model_args_new(libxl__gc *gc, > default: > break; > } > + > + if (b_info->device_model_user) { > + user = b_info->device_model_user; > + if (libxl__dm_runas_helper(gc, user) <= 0) > + user = NULL; I think this case should be an error, rather than continuing and running qemu as root. Ian.