diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-04-01 10:07:35 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-04-01 10:07:35 +0100 |
commit | a9920c61ac7e98cc2aaa9dfa4daa1d93caa51b99 (patch) | |
tree | c2fc8cb0a0aa7840c2d3ca23f1102dae2a2c5a6c /tools/libxen/src | |
parent | 999853b092c34a43383ae8b7b117820b79171c85 (diff) | |
download | xen-a9920c61ac7e98cc2aaa9dfa4daa1d93caa51b99.tar.gz xen-a9920c61ac7e98cc2aaa9dfa4daa1d93caa51b99.tar.bz2 xen-a9920c61ac7e98cc2aaa9dfa4daa1d93caa51b99.zip |
libxen: XSPolicy.can_run for libxen
Add the stub and prototype for the XSPolicy.can_run function to the
lib-xen library. I also fixed some prototypes that had missing
'extern's.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Diffstat (limited to 'tools/libxen/src')
-rw-r--r-- | tools/libxen/src/xen_xspolicy.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/libxen/src/xen_xspolicy.c b/tools/libxen/src/xen_xspolicy.c index e5f290c1a1..fe0dc255a5 100644 --- a/tools/libxen/src/xen_xspolicy.c +++ b/tools/libxen/src/xen_xspolicy.c @@ -343,3 +343,21 @@ xen_xspolicy_activate_xspolicy(xen_session *session, XEN_CALL_("XSPolicy.activate_xspolicy"); return session->ok; } + + +bool +xen_xspolicy_can_run(xen_session *session, int64_t *result, + char *security_label) +{ + abstract_value param_values[] = + { + { .type = &abstract_type_string, + .u.string_val = security_label } + }; + + abstract_type result_type = abstract_type_int; + + *result = 0; + XEN_CALL_("XSPolicy.can_run"); + return session->ok; +} |