summaryrefslogtreecommitdiff
path: root/p11-kit/fixtures
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2018-01-16 16:17:22 +0100
committerDaiki Ueno <ueno@gnu.org>2018-01-29 17:09:27 +0100
commit3eed501fab5e2a2b19115f4840709c34e9b8ac55 (patch)
tree9604d18a6e657d1af231f71aa4a0ee632b33dfd2 /p11-kit/fixtures
parent031d3c74c0ff5da8e9650da0615bbb8107ab1fde (diff)
proxy: Reuse the existing slot ID mapping after fork
While the proxy module reassigns slot IDs in C_Initialize(), some applications assume that valid slot IDs should never change across multiple calls to C_Initialize(). This patch mitigates this by preserving the slot IDs, if they are known to the proxy module.
Diffstat (limited to 'p11-kit/fixtures')
-rw-r--r--p11-kit/fixtures/package-modules/six.module7
1 files changed, 7 insertions, 0 deletions
diff --git a/p11-kit/fixtures/package-modules/six.module b/p11-kit/fixtures/package-modules/six.module
new file mode 100644
index 0000000..bad9379
--- /dev/null
+++ b/p11-kit/fixtures/package-modules/six.module
@@ -0,0 +1,7 @@
+
+module: mock-six.so
+
+enable-in: test-proxy
+
+# the highest priority among others loaded by test-proxy
+priority: 100