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