File libgcrypt-fips_ignore_FIPS_MODULE_PATH.patch of Package libgcrypt

Index: libgcrypt-1.8.2/src/global.c
===================================================================
--- libgcrypt-1.8.2.orig/src/global.c	2019-03-23 16:37:32.081742233 +0100
+++ libgcrypt-1.8.2/src/global.c	2019-03-23 16:39:49.186479847 +0100
@@ -140,11 +140,6 @@ global_init (void)
   BUG ();
 }
 
-
-#ifndef FIPS_MODULE_PATH
-#define FIPS_MODULE_PATH "/etc/system-fips"
-#endif
-
 void __attribute__ ((constructor)) _gcry_global_constructor (void)
 {
   int rv;
@@ -152,11 +147,6 @@ void __attribute__ ((constructor)) _gcry
   /* We always need the FSM lock to be functional. */
   _gcry_initialize_fsm_lock ();
 
-  rv = access (FIPS_MODULE_PATH, F_OK);
-  if (rv < 0 && errno != ENOENT)
-    rv = 0;
-
-  if (!rv)
     {
       /* We run the integrity check at this point. The remaining
          selftests are run before use of the library by application. */
openSUSE Build Service is sponsored by