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