From 3c96130fde2f114d0ecca13870ac91b00219cf6c Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Thu, 6 Aug 2009 12:25:50 -0400 Subject: 2009-08-06 Dave Brolley * 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. --- runtime/staprun/staprun.h | 1 - 1 file changed, 1 deletion(-) (limited to 'runtime/staprun/staprun.h') diff --git a/runtime/staprun/staprun.h b/runtime/staprun/staprun.h index 0a1ca885..1dcfabbe 100644 --- a/runtime/staprun/staprun.h +++ b/runtime/staprun/staprun.h @@ -134,7 +134,6 @@ const char *moderror(int err); int insert_module(const char *path, const char *special_options, char **options); int mountfs(void); -int check_permissions(void); void start_symbol_thread(void); void stop_symbol_thread(void); -- cgit