summaryrefslogtreecommitdiff
path: root/security/opencryptoki/files/patch-usr-lib-pkcs11-icsf_stdll-pbkdf.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/opencryptoki/files/patch-usr-lib-pkcs11-icsf_stdll-pbkdf.c')
-rw-r--r--security/opencryptoki/files/patch-usr-lib-pkcs11-icsf_stdll-pbkdf.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/security/opencryptoki/files/patch-usr-lib-pkcs11-icsf_stdll-pbkdf.c b/security/opencryptoki/files/patch-usr-lib-pkcs11-icsf_stdll-pbkdf.c
new file mode 100644
index 000000000000..297a45c88f8f
--- /dev/null
+++ b/security/opencryptoki/files/patch-usr-lib-pkcs11-icsf_stdll-pbkdf.c
@@ -0,0 +1,11 @@
+--- usr/lib/pkcs11/icsf_stdll/pbkdf.c.orig 2016-04-29 17:26:46 UTC
++++ usr/lib/pkcs11/icsf_stdll/pbkdf.c
+@@ -337,7 +337,7 @@ set_perms(int file)
+ return CKR_FUNCTION_FAILED;
+ }
+
+- grp = getgrnam("pkcs11");
++ grp = getgrnam(PKCS11GROUP);
+ if (grp) {
+ if (fchown(file, -1, grp->gr_gid) != 0) {
+ TRACE_ERROR("fchown failed: %s\n", strerror(errno));