From: Keir Fraser Subject: Re: PATCH: Actually make /local/domain/$DOMID readonly to the guest Date: Thu, 18 Dec 2008 17:53:49 +0000 Message-ID: References: <20081218174951.GZ23277@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20081218174951.GZ23277@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" Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 18/12/2008 17:49, "Daniel P. Berrange" wrote: >> 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. > > I think that looks correct to me. The easy way to test is to try and > write to '/local/domain/$DOMID/console/tty' from within the guest and > see if it succeeds or not Yes, I actually tested that, and it was no longer writeable. Same for a few susceptible nodes under /vm too. -- Keir