From: Ewan Mellor Subject: Re: Easy user-space usage of xenstore Date: Fri, 30 Jun 2006 15:50:54 +0100 Message-ID: <20060630145054.GB8835@leeni.uk.xensource.com> References: <1151613115.5833.10.camel@cooked.boston.ximian.com> <20060630122901.GA13070@snarc.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Rian Hunter Cc: xen-devel@lists.xensource.com, Vincent Hanquez List-Id: xen-devel@lists.xenproject.org On Fri, Jun 30, 2006 at 10:34:45AM -0400, Rian Hunter wrote: > > On Jun 30, 2006, at 8:29 AM, Vincent Hanquez wrote: > >you can access /local/domain//.. by just using relative path > >instead > >of absolute path. > > > >ex: if you want to read /local/domain/5/something/x from domain 5 > >you can > >just do : > > > >value = xs_read("something/x"); > > Oh can I? That's what I thought except when I do: > > $ xenstore-read something > > it fails. Maybe that's because xenstore-read always does an absolute > path. I've read the source and it doesn't seem that way, I'll guess > I'll try writing a program that uses the xs library to be sure. It probably fails because of permissions -- you can only read what the tools in domain 0 have explicitly allowed you to read. I've just added some notes to the XenBus page on the wiki wrt permissions -- they are worth reading. Ewan.