From: Keir Fraser Subject: Re: [PATCH] tools: add XS_RESTRICT operation to C xenstore client libs. Date: Fri, 2 Jul 2010 18:43:39 +0100 Message-ID: References: <19502.6363.477323.378577@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <19502.6363.477323.378577@mariner.uk.xensource.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: Ian Jackson , Tim Deegan Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 02/07/2010 17:50, "Ian Jackson" wrote: > Tim Deegan writes ("[Xen-devel] [PATCH] tools: add XS_RESTRICT operation to C > xenstore client libs."): >> The OCaml xenstored supports the XS_RESTRICT operation, which >> deprivileges a dom0 xenstore connection so it can only affect one >> domain's entries. Add the relevant definitions to the C libraries >> so that callers can use it. > > Can you explain what this is for, please ? If it's for security > against a hostile caller, what prevents the caller from simply opening > another xenstore connection ? A daemon like qemu-dm can do privileged things like opening a xenstore connection, and then deprivilege itself via setuid() before handling I/O requests and exposing itself on that particular attack front. XS_RESTRICT allows such a service to further and more precisely deprivilege itself. -- Keir