Bug 1218797 - OpenSC fails when child calls C_Initialize() after fork().
Summary: OpenSC fails when child calls C_Initialize() after fork().
Alias: None
Product: Fedora
Classification: Fedora
Component: opensc
Version: 22
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Nikos Mavrogiannopoulos
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: 1135932 1236526
TreeView+ depends on / blocked
Reported: 2015-05-05 22:18 UTC by David Woodhouse
Modified: 2015-08-15 02:18 UTC (History)
5 users (show)

Fixed In Version: opensc-0.15.0-2.fc23
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-07-14 12:58:30 UTC
Type: Bug

Attachments (Terms of Use)
simple test case (1.83 KB, text/plain)
2015-05-05 22:18 UTC, David Woodhouse
no flags Details

Description David Woodhouse 2015-05-05 22:18:16 UTC
Created attachment 1022342 [details]
simple test case

The PKCS#11 Usage Guide recommends calling C_Initialize() in the child after a fork(), on any PKCS#11 provider module which was loaded in the parent.

OpenSC craps itself if you do, because it confuses pcscd.

Comment 1 David Woodhouse 2015-05-05 22:20:36 UTC
cf. http://sourceforge.net/p/opensc/mailman/message/34073754/

Comment 2 David Woodhouse 2015-06-23 10:47:04 UTC
I added a test case for this in the 0.15.0 release. Run pkcs11-tool --test-fork and watch it fail. Unfortunately a *fix* didn't make it to the release.

Comment 3 Nikos Mavrogiannopoulos 2015-07-03 08:13:30 UTC

Comment 4 Fedora Update System 2015-08-05 12:37:45 UTC
opensc-0.15.0-2.fc23 has been submitted as an update for Fedora 23.

Comment 5 Fedora Update System 2015-08-15 02:18:34 UTC
opensc-0.15.0-2.fc23 has been pushed to the Fedora 23 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.