diff options
author | Josh Stone <jistone@redhat.com> | 2009-05-05 11:30:07 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-05-05 11:30:07 -0700 |
commit | b91191117b9a55e80cfc212fec99206ac4ffd54f (patch) | |
tree | 21e0a54f654ebd09f75c68679b17669ac48292e2 | |
parent | d781daa027b2ad6c78f4258734142c97eb40b777 (diff) | |
download | systemtap-steved-b91191117b9a55e80cfc212fec99206ac4ffd54f.tar.gz systemtap-steved-b91191117b9a55e80cfc212fec99206ac4ffd54f.tar.xz systemtap-steved-b91191117b9a55e80cfc212fec99206ac4ffd54f.zip |
Use stap_system() in mod-signing code
-rw-r--r-- | modsign.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modsign.cxx b/modsign.cxx index fafbf1e4..43ddd01a 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; |