summaryrefslogtreecommitdiffstats
path: root/buildrun.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'buildrun.cxx')
-rw-r--r--buildrun.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/buildrun.cxx b/buildrun.cxx
index e4b4b7bf..a93b2909 100644
--- a/buildrun.cxx
+++ b/buildrun.cxx
@@ -231,11 +231,12 @@ 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.
+ // 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 (!rc)
+ if (s.unprivileged && ! rc)
sign_module (s);
#endif