Bug 1231119

Summary: provide a p11-kit module file
Product: Red Hat Enterprise Linux 7 Reporter: Martin Kosek <mkosek>
Component: coolkeyAssignee: Bob Relyea <rrelyea>
Status: CLOSED ERRATA QA Contact: Asha Akkiangady <aakkiang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: dwmw2, extras-qa, jmagne, nmavrogi, rpattath, rrelyea
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: coolkey-1.1.0-30.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1073320 Environment:
Last Closed: 2015-11-19 13:01:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1073320    
Bug Blocks:    

Description Martin Kosek 2015-06-12 08:11:43 UTC
+++ This bug was initially created as a clone of Bug #1073320 +++

p11-kit is used in fedora to access pkcs11 modules: http://p11-glue.freedesktop.org/p11-kit.html

However it requires each available module to register itself using a .module file in /usr/share/p11-kit/.


Installing the attached sample file on this location will do the trick and allow coolkey smart cards to be visible to applications that utilize p11-kit.

The library visibility can be tested using p11-kit list-modules.

--- Additional comment from Nikos Mavrogiannopoulos on 2014-03-06 03:17:21 EST ---

(the correct path is /usr/share/p11-kit/modules/ )

Comment 3 Martin Kosek 2015-06-12 08:21:37 UTC
The suggested config file (attachment 871247 [details]) was already tested by Sumit (CCed) and it worked fine - at least the module listing part.

Comment 4 Bob Relyea 2015-07-06 20:52:57 UTC
fixed in coolkey-1.1.0-30.el7

Comment 6 Roshni 2015-09-02 16:30:00 UTC
[root@dhcp129-45 ~]# rpm -qi coolkey
Name        : coolkey
Version     : 1.1.0
Release     : 33.el7
Architecture: x86_64
Install Date: Wed 02 Sep 2015 10:10:31 AM EDT
Group       : System Environment/Libraries
Size        : 300164
License     : LGPLv2
Signature   : RSA/SHA256, Thu 23 Jul 2015 02:57:59 PM EDT, Key ID 938a80caf21541eb
Source RPM  : coolkey-1.1.0-33.el7.src.rpm
Build Date  : Mon 06 Jul 2015 10:16:18 PM EDT
Build Host  : x86-019.build.eng.bos.redhat.com
Relocations : (not relocatable)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Vendor      : Red Hat, Inc.
URL         : http://directory.fedora.redhat.com/wiki/CoolKey
Summary     : CoolKey PKCS #11 module


I see the coolkey.module file under /usr/share/p11-kit/modules which has the following content

# This file describes how to load the coolkey module
# See: http://p11-glue.freedesktop.org/doc/p11-kit/config.html

# This is a relative path, which means it will be loaded from
# the p11-kit default path which is usually $(libdir)/pkcs11.
# Doing it this way allows for packagers to package coolkey for
# 32-bit and 64-bit and make them parallel installable
module: libcoolkeypk11.so

Comment 7 Roshni 2015-09-02 16:36:56 UTC
Bob,

Please confirm if comment 6 is sufficient to verify this bug or if any additional tests are required.

Comment 8 Roshni 2015-09-02 16:41:44 UTC
Verified the bug as explained in comment 6.

Comment 9 errata-xmlrpc 2015-11-19 13:01:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2015-2413.html