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?? Regards, Bhaskar. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 19/9/08 08:01, "Jayaraman, Bhaskar" <Bhaskar.Jayaraman@lsi.com> 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 Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser writes ("Re: [Xen-devel] xenstore-chmod!"):> You''d have to write a client-side utility which iterates over directory > entries and automatically chmods each individual entry.I think it would be sensible for xenstore-chmod (et al) to have this as an option, -R perhaps. If you were to write your code for recursion so it was useable and used by xenstore-chmod (and perhaps the other utilities) then please do send us the patch. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian, I''ll try and do so. I''m yet to go through the xs-chmod code which I''m expecting to be easy. Plus I''m not aware of the reviewing/patching process so I may come back to you on that. Bhaskar. ________________________________________ From: Ian Jackson [Ian.Jackson@eu.citrix.com] Sent: Friday, September 19, 2008 12:53 PM To: Jayaraman, Bhaskar Cc: Keir Fraser; xen-devel@lists.xensource.com Subject: Re: [Xen-devel] xenstore-chmod! Keir Fraser writes ("Re: [Xen-devel] xenstore-chmod!"):> You''d have to write a client-side utility which iterates over directory > entries and automatically chmods each individual entry.I think it would be sensible for xenstore-chmod (et al) to have this as an option, -R perhaps. If you were to write your code for recursion so it was useable and used by xenstore-chmod (and perhaps the other utilities) then please do send us the patch. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Jayaraman, Bhaskar writes ("RE: [Xen-devel] xenstore-chmod!"):> Ian, I''ll try and do so. I''m yet to go through the xs-chmod code > which I''m expecting to be easy.Excellent.> Plus I''m not aware of the > reviewing/patching process so I may come back to you on that.Just post it here on xen-devel. You should include a Signed-Off-By line like this Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> except with your name and email address. This indicates that you are certifying the code as suitable (copyright-wise and so on) for inclusion in Xen. You can find the precise meaning in the Linux upstream kernel tree (Documentation/SubmittingPatches). Ian.>From Documentation/SubmittingPatches:Developer''s Certificate of Origin 1.1 By making a contribution to this project, I certify that: (a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or (b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or (c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it. (d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved. -- _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel