From be067d1f51b9ef1250251d34ce693cf4eb04e22c Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 08 2020 10:13:24 +0000 Subject: Apply patch opencryptoki-3.11.0-group.patch patch_name: opencryptoki-3.11.0-group.patch present_in_specfile: true location_in_specfile: 1 --- diff --git a/usr/lib/api/shrd_mem.c.in b/usr/lib/api/shrd_mem.c.in index 2f51eda..0cd805b 100644 --- a/usr/lib/api/shrd_mem.c.in +++ b/usr/lib/api/shrd_mem.c.in @@ -55,9 +55,11 @@ void *attach_shared_memory() int shmid; char *shmp; struct stat statbuf; +#if 0 struct group *grp; struct passwd *pw, *epw; uid_t uid, euid; +#endif #if !(MMAP) // Really should fstat the tok_path, since it will be the actual @@ -69,6 +71,7 @@ void *attach_shared_memory() return NULL; } +#if 0 uid = getuid(); euid = geteuid(); // only check group membership if not root user @@ -102,6 +105,7 @@ void *attach_shared_memory() return NULL; } } +#endif Anchor->shm_tok = ftok(TOK_PATH, 'b');