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