diff options
Diffstat (limited to 'security/opencryptoki/files/patch-usr-sbin-pkcsconf-pkcsconf.c')
-rw-r--r-- | security/opencryptoki/files/patch-usr-sbin-pkcsconf-pkcsconf.c | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/security/opencryptoki/files/patch-usr-sbin-pkcsconf-pkcsconf.c b/security/opencryptoki/files/patch-usr-sbin-pkcsconf-pkcsconf.c index 96a5dff1a837..5191373d0e1e 100644 --- a/security/opencryptoki/files/patch-usr-sbin-pkcsconf-pkcsconf.c +++ b/security/opencryptoki/files/patch-usr-sbin-pkcsconf-pkcsconf.c @@ -1,11 +1,20 @@ ---- usr/sbin/pkcsconf/pkcsconf.c.orig 2018-11-16 14:53:03 UTC +--- usr/sbin/pkcsconf/pkcsconf.c.orig 2022-04-25 11:04:51 UTC +++ usr/sbin/pkcsconf/pkcsconf.c -@@ -530,6 +530,8 @@ CK_RV display_pkcs11_info(void) - printf("\tLibrary Version %d.%d \n", CryptokiInfo.libraryVersion.major, +@@ -548,7 +548,7 @@ CK_RV check_user_and_group(void) + * when forked). So we need to get the group information. + * Really need to take the uid and map it to a name. + */ +- grp = getgrnam("pkcs11"); ++ grp = getgrnam(PKCS11GROUP); + if (grp == NULL) { + return CKR_FUNCTION_FAILED; + } +@@ -589,6 +589,8 @@ CK_RV display_pkcs11_info(void) + printf("\tLibrary Description: %.32s \n", CryptokiInfo.libraryDescription); + printf("\tLibrary Version: %d.%d \n", CryptokiInfo.libraryVersion.major, CryptokiInfo.libraryVersion.minor); - -+ cleanup(); + ++ cleanup(); + return rc; } - |