From 3eed501fab5e2a2b19115f4840709c34e9b8ac55 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Tue, 16 Jan 2018 16:17:22 +0100 Subject: 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. --- p11-kit/fixtures/package-modules/six.module | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 p11-kit/fixtures/package-modules/six.module (limited to 'p11-kit/fixtures/package-modules') 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 -- cgit v1.1