summaryrefslogtreecommitdiff
path: root/security/opencryptoki/files/patch-usr-lib-pkcs11-api-shrd_mem.c.in
blob: cda7f3706529e60d13939b4fe04b370b8a30f2c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- usr/lib/pkcs11/api/shrd_mem.c.in.orig	2016-04-29 17:26:45 UTC
+++ usr/lib/pkcs11/api/shrd_mem.c.in
@@ -357,7 +357,7 @@ 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;