summaryrefslogtreecommitdiffstats
path: root/modsign.cxx
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-05-05 14:31:35 -0400
committerDave Brolley <brolley@redhat.com>2009-05-05 14:31:35 -0400
commit60f6c990f8cfde6377e1e41757ef48f45f9365c4 (patch)
tree5c4a464227f1315080bc867b68250493b167e082 /modsign.cxx
parent5f07098f7e955b5ea9482bea9b75d1f631863df3 (diff)
parentb91191117b9a55e80cfc212fec99206ac4ffd54f (diff)
downloadsystemtap-steved-60f6c990f8cfde6377e1e41757ef48f45f9365c4.tar.gz
systemtap-steved-60f6c990f8cfde6377e1e41757ef48f45f9365c4.tar.xz
systemtap-steved-60f6c990f8cfde6377e1e41757ef48f45f9365c4.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'modsign.cxx')
-rw-r--r--modsign.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/modsign.cxx b/modsign.cxx
index 3ac4dab8..435fec12 100644
--- a/modsign.cxx
+++ b/modsign.cxx
@@ -21,6 +21,7 @@
*/
#include "session.h"
+#include "util.h"
#include <iostream>
#include <string>
@@ -285,14 +286,14 @@ init_cert_db_path (const string &cert_db_path) {
// Generate the certificate and database.
string cmd = BINDIR "/stap-gen-cert " + cert_db_path;
- rc = system (cmd.c_str()) == 0;
+ rc = stap_system (cmd.c_str()) == 0;
// If we are root, authorize the new certificate as a trusted
// signer. It is not an error if this fails.
if (geteuid () == 0)
{
cmd = BINDIR "/stap-authorize-signing-cert " + cert_db_path + "/stap.cert";
- system (cmd.c_str());
+ stap_system (cmd.c_str());
}
return rc;