From: Keir Fraser Subject: Re: PATCH: Actually make /local/domain/$DOMID readonly to the guest Date: Thu, 18 Dec 2008 17:21:10 +0000 Message-ID: References: <20081218155306.GV23277@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20081218155306.GV23277@redhat.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: "Daniel P. Berrange" , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 18/12/2008 15:53, "Daniel P. Berrange" wrote: > Explicitly give Dom0 permissions on the /local/domain/$DOMID so it > becomes the owner of the path. The guest is then granted read perm > on the path. Thanks Daniel, that's a nasty one! However there are other places in xend that commit the same error, and this interface weakness would doubtless bite us again in future. Hence the patch I actually committed (c/s 18933) actually takes a different strategy: in the bowels of the xend xenstore C package I check to see if the caller is try to change permissions of the node owner, and if so I fudge in dom0 as the owner instead. A bit grim, but I think probably a safer bet in this instance. What do you think of it? If it seems okay I will backport and will have to do new RCs of 3.2.3 and 3.3.1. Thanks again, Keir