diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-06-23 12:32:17 +0000 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-06-23 12:32:17 +0000 |
commit | 5d6d0f25b9732b83aa3110fb7b52a8b00d5f70e6 (patch) | |
tree | 4709fdddba441c1f4a7a462a614b62d18958e4c0 | |
parent | f03b5294682b43b0d797b3a69f18333d9559f531 (diff) | |
download | xen-5d6d0f25b9732b83aa3110fb7b52a8b00d5f70e6.tar.gz xen-5d6d0f25b9732b83aa3110fb7b52a8b00d5f70e6.tar.bz2 xen-5d6d0f25b9732b83aa3110fb7b52a8b00d5f70e6.zip |
bitkeeper revision 1.1743 (42baabd1aq7F8kKY4ptBZ39ebtEqOw)
null_set_binary_policy() should return ACM_OK instead of -1. This
patch also makes few cleanups.
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
-rw-r--r-- | xen/acm/acm_null_hooks.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/xen/acm/acm_null_hooks.c b/xen/acm/acm_null_hooks.c index 6433cbfed6..ce5b2b5453 100644 --- a/xen/acm/acm_null_hooks.c +++ b/xen/acm/acm_null_hooks.c @@ -19,28 +19,23 @@ null_init_domain_ssid(void **chwall_ssid, ssidref_t ssidref) return ACM_OK; } - static void null_free_domain_ssid(void *chwall_ssid) { return; } - static int null_dump_binary_policy(u8 *buf, u16 buf_size) { return 0; } - - static int null_set_binary_policy(u8 *buf, u16 buf_size) { - return -1; + return ACM_OK; } - static int null_dump_stats(u8 *buf, u16 buf_size) @@ -49,7 +44,6 @@ null_dump_stats(u8 *buf, u16 buf_size) return 0; } - /* now define the hook structure similarly to LSM */ struct acm_operations acm_null_ops = { .init_domain_ssid = null_init_domain_ssid, @@ -72,5 +66,4 @@ struct acm_operations acm_null_ops = { .fail_grant_map_ref = NULL, .pre_grant_setup = NULL, .fail_grant_setup = NULL - }; |