Bug 55052

Summary: Refuse to load the p11-kit-proxy.so as a registered module
Product: p11-glue Reporter: Stef Walter <stefw>
Component: p11-kitAssignee: Stef Walter <stefw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Refuse to load the p11-kit-proxy.so as a registered module

Description Stef Walter 2012-09-18 14:37:20 UTC
Although this is an invalid configuration, give a clear message when
the user tries to load the p11-kit-proxy.so as a p11-kit registered module.
Comment 1 Stef Walter 2012-09-18 14:37:21 UTC
Created attachment 67329 [details] [review]
Refuse to load the p11-kit-proxy.so as a registered module

 * Since p11-kit-proxy.so is a symlink to the libp11-kit.so library
   we check that we are not calling into our known CK_FUNCTION_LIST
   for the proxy code.
 * Although such a configuration is invalid, detecting this directly
   prevents strange initialization loop issues that are hard to debug.
Comment 2 Stef Walter 2013-02-12 15:02:37 UTC
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.