From: Keir Fraser Subject: Re: [PATCH] xenstored: allow guests to reintroduce themselves Date: Tue, 09 Aug 2011 12:31:22 +0100 Message-ID: References: <4E411780.7050902@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4E411780.7050902@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Vincent Hanquez Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 09/08/2011 12:18, "Vincent Hanquez" wrote: > On 08/09/2011 12:00 PM, Keir Fraser wrote: >> If userspace connections to xenbus were not trusted, we'd >> need a lot more filtering than we have. > > I don't think people that are using it in guest userspace (quite liberally) > have necessarily realized this. Well, you do need to be root (at least by default) to access the xenstore device, and there are myriad other ways for a root process to break the guest. Admittedly you could start as root and then deprivilege yourself, in which case the xenstore conenction would be an ongoing point of excess privilege. Do you have any examples of projects which could run with much lesser privilege, and very constrained xenstore access, if a suitably controlled xenstore interface was provided? -- Keir