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

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