summaryrefslogtreecommitdiff
path: root/security/opencryptoki/files/patch-usr-lib-api-shrd_mem.c.in
blob: 09a387d7fbd5b6e94de1cb916e0d914d3b6ae8ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- usr/lib/api/shrd_mem.c.in.orig	2018-11-16 14:53:03 UTC
+++ usr/lib/api/shrd_mem.c.in
@@ -74,7 +74,7 @@ void *attach_shared_memory()
     // only check group membership if not root user
     if (uid != 0 && euid != 0) {
         int i, member = 0;
-        grp = getgrnam("pkcs11");
+        grp = getgrnam(PKCS11GROUP);
         if (!grp) {
             // group pkcs11 not known to the system
             return NULL;