From 81b0eb8071ab21f554f0b154c1c58fcf186888c5 Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Mon, 10 Aug 2009 11:47:17 -0400 Subject: [PATCH] It is not an error or warning if the local database of authorized signing certificates does not exist. It just means that the signed module is untrusted. --- runtime/staprun/modverify.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/runtime/staprun/modverify.c b/runtime/staprun/modverify.c index 15447279c..6dc192b2e 100644 --- a/runtime/staprun/modverify.c +++ b/runtime/staprun/modverify.c @@ -33,6 +33,7 @@ #include "modverify.h" #include +#include /* Function: int check_cert_db_permissions (const char *cert_db_path); * @@ -125,6 +126,10 @@ check_cert_db_permissions (const char *cert_db_path) { rc = stat (cert_db_path, & info); if (rc) { + /* It is ok if the directory does not exist. This simply means that no signing + certificates have been authorized yet. */ + if (errno == ENOENT) + return 0; fprintf (stderr, "Could not obtain information on certificate database directory %s.\n", cert_db_path); perror (""); -- 2.43.5