Ticket #389 (closed defect: fixed)
NB! Read about ReportingBugs before filing a ticket!
PKCS#11 module shouldn't fail if mlock doesn't work
| Reported by: | stefw | Owned by: | opensc-devel@… |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | opensc | Version: | 0.12.2 |
| Severity: | normal | Keywords: | haspatch |
| Cc: | Blocked By: | ||
| Blocking: |
Description
Sometimes a process has already used mlock() and reaches the limits on the amount of memory that can be locked. In other cases, no memory can be locked at all.
Currently C_CreateObject fails when memory cannot be mlock()'d because caching of the PIN fails.
Attachments
Change History
Changed 8 months ago by stefw
-
attachment
0001-libopensc-Don-t-fail-to-allocate-memory-when-mlock-f.patch
added
Changed 5 months ago by stefw
Add setting for paranoid-memory
comment:1 Changed 3 months ago by ludovic
- Status changed from new to closed
- Resolution set to fixed
Patches now applied in OpenSC/staging https://github.com/OpenSC/OpenSC/pull/20
Note: See
TracTickets for help on using
tickets.
