Bug 1218797
Summary: | OpenSC fails when child calls C_Initialize() after fork(). | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | David Woodhouse <dwmw2> | ||||
Component: | opensc | Assignee: | Nikos Mavrogiannopoulos <nmavrogi> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 22 | CC: | gmazyland, kalevlember, nmavrogi, stefw, tmraz | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | opensc-0.15.0-2.fc23 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-07-14 12:58:30 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: | |||||||
Bug Blocks: | 1135932, 1236526 | ||||||
Attachments: |
|
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. opensc-0.15.0-2.fc23 has been submitted as an update for Fedora 23. https://admin.fedoraproject.org/updates/opensc-0.15.0-2.fc23 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. |
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.