WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] How do you change XenStore permissions?

To: Julian Munster <jmuenster@xxxxxxxxx>
Subject: Re: [Xen-devel] How do you change XenStore permissions?
From: Patrick Colp <pjcolp@xxxxxxxxx>
Date: Tue, 16 Sep 2008 22:22:17 -0600
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 16 Sep 2008 21:22:46 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <ed4573ba0809162100h5f4b97c8t25bd7631f240f2b1@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <ed4573ba0809162100h5f4b97c8t25bd7631f240f2b1@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.16 (X11/20080908)
Is there a way to change the permission for a specific path in XenStore?

Yes, with the SET_PERMS message.

e.g. SET_PERMS (/vm/00000000-0000-0000-0000-000000000000/uuid r0 )

This will give read access to /vm/00000000-0000-0000-0000-000000000000/uuid to all domains.


And can you do that from with in a C program?

Yes. Check out this page under the "API Usage Examples":

http://wiki.xensource.com/xenwiki/XenStoreReference


If you have any questions about how the permissions work in XenStore, feel free to ask (it's a bit confusing).


Patrick

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>