Blame SOURCES/opencryptoki-3.11.0-warn-user-not-in-pkcs11-group.patch

ca735d
diff -up opencryptoki-3.11.0/usr/sbin/pkcsconf/pkcsconf.c.me opencryptoki-3.11.0/usr/sbin/pkcsconf/pkcsconf.c
ca735d
--- opencryptoki-3.11.0/usr/sbin/pkcsconf/pkcsconf.c.me	2019-01-31 13:27:05.720647942 +0100
ca735d
+++ opencryptoki-3.11.0/usr/sbin/pkcsconf/pkcsconf.c	2019-01-31 13:36:05.763624633 +0100
ca735d
@@ -1072,6 +1072,9 @@ CK_RV init(void)
ca735d
     if (rc != CKR_OK) {
ca735d
         printf("Error initializing the PKCS11 library: 0x%lX (%s)\n", rc,
ca735d
                p11_get_ckr(rc));
ca735d
+        printf("Note: all non-root users that require access to PKCS#11 tokens "
ca735d
+               "using opencryptoki must be assigned to the pkcs11 group to be "
ca735d
+               "able to communicate with the pkcsslotd daemon.\n");
ca735d
         fflush(stdout);
ca735d
         cleanup();
ca735d
     }