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/
Home Products Support Community News


Re: [Xen-devel] xenstore-chmod!

To: "Jayaraman, Bhaskar" <Bhaskar.Jayaraman@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] xenstore-chmod!
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Fri, 19 Sep 2008 08:12:48 +0100
Delivery-date: Fri, 19 Sep 2008 00:12:35 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <7F0FB2108857B5449321AEA91CF47903185B0617BC@xxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AckaJYqyHm5z/UNESxm4e/d+rDQKPAAAZQgs
Thread-topic: [Xen-devel] xenstore-chmod!
User-agent: Microsoft-Entourage/

On 19/9/08 08:01, "Jayaraman, Bhaskar" <Bhaskar.Jayaraman@xxxxxxx> wrote:

Hi I want to change the permissions of all the keys within a domain with one shot. Currently I am having to individually do
# xenstore-chmod /local/domain/24/device rw
# xenstore-chmod /local/domain/24/device/vfb rw
# xenstore-chmod /local/domain/24/device/vfb/0 rw
# xenstore-chmod /local/domain/24/device/vfb/0/state rw
# xenstore-chmod /local/domain/24/device/vfb/0/backend-id rw
# xenstore-chmod /local/domain/24/device/vfb/0/backend rw
And so on, where 24 is the domain id of the domain whose xenstore I want to share and rw are the permissions. This is true with PVs and HVMs for them to allow other domains to be able to access their xenstore.
Is there any way that I can do this in one shot, either using xenstore-chmod or using the configuration file while creating the guest, either PV or HVM??

You’d have to write a client-side utility which iterates over directory entries and automatically chmods each individual entry.

 -- Keir
Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>