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