Summary: | Don't fail initialization if last initialized module fails | ||
---|---|---|---|
Product: | p11-glue | Reporter: | Stef Walter <stefw> |
Component: | p11-kit | Assignee: | Stef Walter <stefw> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | stefw |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Don't fail initialization if last initialized module fails |
Description
Stef Walter
2012-09-18 14:36:32 UTC
Created attachment 67328 [details] [review] Don't fail initialization if last initialized module fails * We weren't resetting the result code after a failure, so even though failures for critical modules didn't interrupt the initialization loop, the result still leaked to callers. * Also print an error message clearly indicating that a module failed to initialize, regardless of whether critical or not. To try this out, Set 'user-config: only' in ~/.pkcs11/pkcs11.conf Then make sure that only a filed called 'nss.module' exists in ~/.pkcs11/modules/, with (invalid) contents like this: module: /usr/lib64/libsoftokn3.so x-init-reserved: configdir='sql:/blah/.pki/nssdb' certPrefix='' keyPrefix='' secmod='secmod.db' flags=optimizeSpace updatedir='' updateCertPrefix='' updateKeyPrefix='' updateid='' updateTokenDescription='' Before the patch 'p11-kit -l' would return a non-zero exit code. After it'll return success. This was pushed into git master before the 0.15.1 release. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.