summaryrefslogtreecommitdiffstats
path: root/runtime/staprun/modverify.c
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2010-01-15 10:57:08 -0500
committerDave Brolley <brolley@redhat.com>2010-01-15 10:57:08 -0500
commitceeefadd6874e3d315669a87ec0d05a0ce1f7094 (patch)
treefad469e3f31212afee4d1fb6aa6833b48e1724b7 /runtime/staprun/modverify.c
parent3f78f0208e1bfe8061d1898418882b5e2756f8a2 (diff)
parent86f99ad8206574dc6400d48563db58341cb50f52 (diff)
downloadsystemtap-steved-ceeefadd6874e3d315669a87ec0d05a0ce1f7094.tar.gz
systemtap-steved-ceeefadd6874e3d315669a87ec0d05a0ce1f7094.tar.xz
systemtap-steved-ceeefadd6874e3d315669a87ec0d05a0ce1f7094.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Conflicts: stap-client
Diffstat (limited to 'runtime/staprun/modverify.c')
-rw-r--r--runtime/staprun/modverify.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/runtime/staprun/modverify.c b/runtime/staprun/modverify.c
index a17bb2ec..5d442393 100644
--- a/runtime/staprun/modverify.c
+++ b/runtime/staprun/modverify.c
@@ -272,12 +272,18 @@ int verify_module (const char *signatureName, const char* module_name,
/* Verify the permissions of the certificate database and its files. */
if (! check_cert_db_permissions (dbdir))
- return MODULE_UNTRUSTED;
+ {
+ if (verbose>1) fprintf (stderr, "Certificate db %s permissions too loose\n", dbdir);
+ return MODULE_UNTRUSTED;
+ }
/* Get the size of the signature file. */
prStatus = PR_GetFileInfo (signatureName, &info);
if (prStatus != PR_SUCCESS || info.type != PR_FILE_FILE || info.size < 0)
- return MODULE_UNTRUSTED; /* Not signed */
+ {
+ if (verbose>1) fprintf (stderr, "Signature file %s not found\n", signatureName);
+ return MODULE_UNTRUSTED; /* Not signed */
+ }
/* Open the signature file. */
local_file_fd = PR_Open (signatureName, PR_RDONLY, 0);