Blame SOURCES/opencryptoki-3.11.0-group.patch

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