diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2007-12-12 09:57:55 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2007-12-12 09:57:55 +0000 |
commit | 7d6b2ecfac3e7188815bf4d3feb51631c0b3a019 (patch) | |
tree | 1ca851a0f919ee68f245db3d4517574698a3a415 /tools/libxen/include | |
parent | aaa7e11a7cac991f6249d7659ba22e23cfbf1e3e (diff) | |
download | xen-7d6b2ecfac3e7188815bf4d3feb51631c0b3a019.tar.gz xen-7d6b2ecfac3e7188815bf4d3feb51631c0b3a019.tar.bz2 xen-7d6b2ecfac3e7188815bf4d3feb51631c0b3a019.zip |
xend, acm: 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>
Diffstat (limited to 'tools/libxen/include')
-rw-r--r-- | tools/libxen/include/xen/api/xen_xspolicy.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/libxen/include/xen/api/xen_xspolicy.h b/tools/libxen/include/xen/api/xen_xspolicy.h index 3ecdc4b54d..b0808f4d57 100644 --- a/tools/libxen/include/xen/api/xen_xspolicy.h +++ b/tools/libxen/include/xen/api/xen_xspolicy.h @@ -240,6 +240,19 @@ xen_xspolicy_set_xspolicy(xen_session *session, xen_xs_policystate **result, bool overwrite); + +/** + * Attempt to reset the system's policy to the DEFAULT policy for the + * respective policy type. This is done by updating the system and therefore + * underlies the same restrictions of a policy update. This operation may + * for example fail if other domains than Domain-0 are running and have + * different labels than Domain-0. + */ +bool +xen_xspolicy_reset_xspolicy(xen_session *session, xen_xs_policystate **result, + xs_type type); + + /** * Remove any policy from having the system booted with. */ |