Stefan Berger
2007-Dec-10 20:43 UTC
[Xen-devel] [PATCH] [Xend] Extend Xen-API with function to reset the policy
This patch extends the Xen-API and the legacy XML-RPC interface with a function to reset the policy on the system (through an update with the default policy). I adapted the code in ''xm resetpolicy'' to use this now. This patch also extends libxen and the documentation to reflect the new function. Signed-off-by: Stefan Berger <stefanb@us.ibm.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
John Levon
2007-Dec-10 20:47 UTC
Re: [Xen-devel] [PATCH] [Xend] Extend Xen-API with function to reset the policy
On Mon, Dec 10, 2007 at 03:43:08PM -0500, Stefan Berger wrote:> --- root.orig/xen-unstable.hg/docs/xen-api/xenapi-datamodel.tex > +++ root/xen-unstable.hg/docs/xen-api/xenapi-datamodel.tex > @@ -14735,6 +14735,45 @@ xs\_policystate > State information about the policy. In case an error occurred, the ''xs\_err'' > field contains the error code. The ''errors'' may contain further information > about the error. > + \vspace{0.3cm} > +\vspace{0.3cm} > +\vspace{0.3cm} > +\subsubsection{RPC name:~reset\_xspolicy} > + > +{\bf Overview:} > +Attempt to reset the system''s policy by installing the default policy. > +Since this function is implemented as an update to the current policy, it > +underlies the same restrictions. This function may fail if for exampleThis might have happened before, but I just noticed that the API docs are being modified without any version control - or any indication of when new things were added. Programming against such API docs is generally a horrible experience as you never have any idea what is there and what isn''t. Can we please start a changelog for the API, and version it appropriately? thanks john _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Stefan Berger
2007-Dec-10 21:51 UTC
Re: [Xen-devel] [PATCH] [Xend] Extend Xen-API with function to reset the policy
xen-devel-bounces@lists.xensource.com wrote on 12/10/2007 03:47:40 PM:> On Mon, Dec 10, 2007 at 03:43:08PM -0500, Stefan Berger wrote: > > > --- root.orig/xen-unstable.hg/docs/xen-api/xenapi-datamodel.tex > > +++ root/xen-unstable.hg/docs/xen-api/xenapi-datamodel.tex > > @@ -14735,6 +14735,45 @@ xs\_policystate > > State information about the policy. In case an error occurred, > the ''xs\_err'' > > field contains the error code. The ''errors'' may contain furtherinformation> > about the error. > > + \vspace{0.3cm} > > +\vspace{0.3cm} > > +\vspace{0.3cm} > > +\subsubsection{RPC name:~reset\_xspolicy} > > + > > +{\bf Overview:} > > +Attempt to reset the system''s policy by installing the defaultpolicy.> > +Since this function is implemented as an update to the currentpolicy, it> > +underlies the same restrictions. This function may fail if forexample> > This might have happened before, but I just noticed that the API docs > are being modified without any version control - or any indication of > when new things were added. > > Programming against such API docs is generally a horrible experience as > you never have any idea what is there and what isn''t. > > Can we please start a changelog for the API, and version it > appropriately?Ok, I will do start a change log, increase the revision to 1.0.1 and adjust the date. Thanks. Stefan> > thanks > john > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
John Levon
2007-Dec-10 21:58 UTC
Re: [Xen-devel] [PATCH] [Xend] Extend Xen-API with function to reset the policy
On Mon, Dec 10, 2007 at 04:51:16PM -0500, Stefan Berger wrote:> Ok, I will do start a change log, increase the revision to 1.0.1 and > adjust the date.Thanks a lot! Below are the only changes to that file in particular since 3.1 branched. I think my changes were clarification only, so it''s just yours that need to be clearly labelled as 1.0.1. regards john changeset: 16168:51f521303df7 user: Keir Fraser <keir@xensource.com> date: Thu Oct 11 09:41:16 2007 +0100 summary: [vTPM] Add set/get_other_config to Xen-API. changeset: 16081:2e5e948bf69d user: Keir Fraser <keir@xensource.com> date: Wed Oct 03 14:04:51 2007 +0100 summary: Extend ''xm dumppolicy'' to support Xen-API changeset: 15692:fdc602720f11 user: kfraser@localhost.localdomain date: Thu Jul 19 17:00:31 2007 +0100 summary: Update xen-api docs. changeset: 15654:bd2f9628114e user: kfraser@localhost.localdomain date: Thu Jul 12 10:06:44 2007 +0100 summary: [Docs] Documentation of extension of the Xen-API for managing security policies changeset: 15593:73290f6fe70a user: kfraser@localhost.localdomain date: Tue Jul 10 10:22:41 2007 +0100 summary: Xen API specification improvements. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel