a97cd99
diff -up opencryptoki-3.11.0/usr/lib/api/shrd_mem.c.in.me opencryptoki-3.11.0/usr/lib/api/shrd_mem.c.in
a97cd99
--- opencryptoki-3.11.0/usr/lib/api/shrd_mem.c.in.me	2019-01-31 10:42:23.325797012 +0100
a97cd99
+++ opencryptoki-3.11.0/usr/lib/api/shrd_mem.c.in	2019-01-31 10:52:17.585191667 +0100
a97cd99
@@ -55,9 +55,11 @@ void *attach_shared_memory()
a97cd99
     int shmid;
a97cd99
     char *shmp;
a97cd99
     struct stat statbuf;
a97cd99
+#if 0
a97cd99
     struct group *grp;
a97cd99
     struct passwd *pw, *epw;
a97cd99
     uid_t uid, euid;
a97cd99
+#endif
a97cd99
 
a97cd99
 #if !(MMAP)
a97cd99
     // Really should fstat the tok_path, since it will be the actual
a97cd99
@@ -69,6 +71,7 @@ void *attach_shared_memory()
a97cd99
         return NULL;
a97cd99
     }
a97cd99
 
a97cd99
+#if 0
a97cd99
     uid = getuid();
a97cd99
     euid = geteuid();
a97cd99
     // only check group membership if not root user
a97cd99
@@ -102,6 +105,7 @@ void *attach_shared_memory()
a97cd99
             return NULL;
a97cd99
         }
a97cd99
     }
a97cd99
+#endif
a97cd99
 
a97cd99
     Anchor->shm_tok = ftok(TOK_PATH, 'b');
a97cd99