From: Ian Campbell Subject: Re: [PATCH] libxl: set permissions for xs frontend entry pointing to xs backend Date: Tue, 10 Sep 2013 16:16:20 +0100 Message-ID: <1378826180.10928.25.camel@kazak.uk.xensource.com> References: <1378823007.10928.12.camel@kazak.uk.xensource.com> <1378824892-20789-1-git-send-email-roger.pau@citrix.com> <21039.14046.599923.505120@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VJPhM-0004gb-Q0 for xen-devel@lists.xenproject.org; Tue, 10 Sep 2013 15:17:49 +0000 In-Reply-To: <21039.14046.599923.505120@mariner.uk.xensource.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 Jackson Cc: xen-devel@lists.xenproject.org, security@xen.org, Roger Pau Monne List-Id: xen-devel@lists.xenproject.org On Tue, 2013-09-10 at 16:12 +0100, Ian Jackson wrote: > Roger Pau Monne writes ("[PATCH] libxl: set permissions for xs frontend entry pointing to xs backend"): > > libxl doesn't currently set the permissions of entries like: > > > > /local/domain//device///backend > > > > This allows the guest to change this xenstore entries to point to a > > different backend path, or to malicious xenstore path forged by the > > guest itself. libxl currently relies on this path being valid in order > > to perform the unplug of devices in libxl__devices_destroy, so we > > should prevent the guest from modifying this xenstore entry. > > Is it sufficient to set the permissions on "backend" - does that > prevent the guest deleting the whole subtree ? Yes. See the rest of this thread. > Really it would be better to make the unplug not depend on this path. Given the above, why? > This is a security issue, so CCing security@. It appears to have > been discovered in public on xen-devel, so shouldn't be embargoed. Ack. Ian.