summaryrefslogtreecommitdiffstats
path: root/buildrun.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'buildrun.cxx')
-rw-r--r--buildrun.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/buildrun.cxx b/buildrun.cxx
index 14c6a395..31f7ec00 100644
--- a/buildrun.cxx
+++ b/buildrun.cxx
@@ -10,6 +10,9 @@
#include "buildrun.h"
#include "session.h"
#include "util.h"
+#if HAVE_NSS
+#include "modsign.h"
+#endif
#include <cstdlib>
#include <fstream>
@@ -218,6 +221,14 @@ compile_pass (systemtap_session& s)
rc = run_make_cmd(s, make_cmd);
+#if HAVE_NSS
+ // If a certificate database was specified, 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());
+ sign_module (s);
+#endif
+
return rc;
}