summaryrefslogtreecommitdiff
path: root/security/opencryptoki/files/patch-usr-lib-common-pkcs_utils.c
blob: d9a1b70e0bd46324e6aa9d53be4fe9a428ef8351 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- usr/lib/common/pkcs_utils.c.orig	2022-04-25 11:04:51 UTC
+++ usr/lib/common/pkcs_utils.c
@@ -466,7 +466,7 @@ void set_perm(int file)
     // Set absolute permissions or rw-rw----
     fchmod(file, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
 
-    grp = getgrnam("pkcs11"); // Obtain the group id
+    grp = getgrnam(PKCS11GROUP); // Obtain the group id
     if (grp) {
         // set ownership to pkcs11 group
         if (fchown(file, -1, grp->gr_gid) != 0) {