]> sourceware.org Git - systemtap.git/commitdiff
It is not an error or warning if the local database of authorized signing
authorDave Brolley <brolley@redhat.com>
Mon, 10 Aug 2009 15:47:17 +0000 (11:47 -0400)
committerDave Brolley <brolley@redhat.com>
Mon, 10 Aug 2009 15:47:17 +0000 (11:47 -0400)
certificates does not exist. It just means that the signed module is untrusted.

runtime/staprun/modverify.c

index 15447279cd45dae80503ebd933369a37d7c635b7..6dc192b2e486d0cc5f6d33fe86328fd885c23b25 100644 (file)
@@ -33,6 +33,7 @@
 #include "modverify.h"
 
 #include <sys/stat.h>
+#include <errno.h>
 
 /* 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 ("");
This page took 0.027077 seconds and 5 git commands to generate.