From b9c1510ee2ef5283d7faafad4e82a4bb933d9e29 Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Mon, 14 Sep 2009 15:06:36 -0400 Subject: 2009-09-14 Dave Brolley * modsign.cxx (init_cert_db_path): Use 'system' call. (sign_module): Renamed to 'main'. This is now an independant program. Check for arguments. Return 1 on error. * buildrun.cxx (modsign.h): Don't #include it. (compile_pass): Don't sign the module. * main.cxx (main): Don't copy the module signature. * cache.cxx (add_to_cache): Don't cache the module signature. * Makefile.am (bin_PROGRAMS): Add stap-sign-module. (stap_SOURCES): Remove modsign.cxx and nsscommon.c. (stap_sign_module_SOURCES): New variable. (stap_sign_module_CPPFLAGS): New variable. (stap_sign_module_LDFLAGS): New variable. (stap_sign_module_LDADD): New variable. * stap-server (initialization): Initialize unprivileged. (parse_options): Handle --unprivileged. (create_response): Call stap-sign-module if --unprivileged was specified. * systemtap.spec: Add stap-sign-module to stap-server. * Makefile.in: Regenerated. * doc/Makefile.in: Regenerated. * doc/SystemTap_Tapset_Reference/Makefile.in: Regenerated. * grapher/Makefile.in: Regenerated. * testsuite/Makefile.in: Regenerated. * aclocal.m4: Likewise. * testsuite/aclocal.m4: Likewise. * configure: Likewise. * testsuite/configure: Likewise. --- buildrun.cxx | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'buildrun.cxx') diff --git a/buildrun.cxx b/buildrun.cxx index 6bef4095..100cbc4d 100644 --- a/buildrun.cxx +++ b/buildrun.cxx @@ -10,9 +10,6 @@ #include "buildrun.h" #include "session.h" #include "util.h" -#if HAVE_NSS -#include "modsign.h" -#endif #include #include @@ -244,16 +241,6 @@ compile_pass (systemtap_session& s) rc = run_make_cmd(s, make_cmd); -#if HAVE_NSS - // If a certificate database was specified, and we're in unprivileged - // mode, then try to sign the module. - // Failure to do so is not a fatal error. If the signature is actually needed, - // staprun will complain at that time. - assert (! s.cert_db_path.empty()); - if (s.unprivileged && ! rc) - sign_module (s); -#endif - return rc; } -- cgit