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