summaryrefslogtreecommitdiffstats
path: root/runtime/staprun/modverify.h
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-08-06 12:25:50 -0400
committerDave Brolley <brolley@redhat.com>2009-08-06 12:25:50 -0400
commit3c96130fde2f114d0ecca13870ac91b00219cf6c (patch)
tree4872acd81f6f1bcd1539946e598bfa4afc8accd9 /runtime/staprun/modverify.h
parentdceb9cebada8326f7eb5097475303c28e81b105b (diff)
downloadsystemtap-steved-3c96130fde2f114d0ecca13870ac91b00219cf6c.tar.gz
systemtap-steved-3c96130fde2f114d0ecca13870ac91b00219cf6c.tar.xz
systemtap-steved-3c96130fde2f114d0ecca13870ac91b00219cf6c.zip
2009-08-06 Dave Brolley <brolley@redhat.com>
* modverify.c (staprun.h): #include it. (verify_it): Now accepts module data and signature data as arguments. Don't open and read the signature here. Don't read the module here. (verify_module): Now accepts module data as argument. Read the signature once here. * modverify.h (verify_module): Now accepts module data as argument. * staprun.c (main): Don't call check_permissions here. * staprun.h (check_permissions): Prototype removed. * staprun_funcs.c (check_permissions): Now static. Accepts module data as argument. Pass module data to check_signature. (insert_module): Canonicalize the module path early here. Call check_permissions here, passing it the mapped module data. (check_signature): Now accepts module data as argument. Pass the module data to verify_module. (check_path): Use the already-canonicalized module path.
Diffstat (limited to 'runtime/staprun/modverify.h')
-rw-r--r--runtime/staprun/modverify.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/staprun/modverify.h b/runtime/staprun/modverify.h
index 49b90bfe..730a5e86 100644
--- a/runtime/staprun/modverify.h
+++ b/runtime/staprun/modverify.h
@@ -1,4 +1,4 @@
-int verify_module (const char *module_name, const char *signature_name);
+int verify_module (const char *signature_name, const void *module_data, off_t module_size);
/* return codes for verify_module. */
#define MODULE_OK 1