From 0684cd7b7f815b411ea5041c021f92ca5ef42606 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Wed, 11 Jan 2017 09:32:19 +0100 Subject: rpc: Add PKCS#11 module that connects to socket This patch adds a PKCS#11 module that connects to the p11-kit server exposed on the filesystem. The filename of the socket is determined in the following order: - $P11_KIT_SERVER_ADDRESS, if the envvar is available - $XDG_RUNTIME_DIR/p11-kit/pkcs11, if the envvar is available - /run/$(id -u)/p11-kit/pkcs11, if /run/$(id -u) exists - /var/run/$(id -u)/p11-kit/pkcs11, if /var/run/$(id -u) exists - ~/.cache/p11-kit/pkcs11. Note that the program loading this module may have called setuid() and secure_getenv() which we use for fetching envvars could return NULL. --- trust/Makefile.am | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'trust') diff --git a/trust/Makefile.am b/trust/Makefile.am index 6df75a1..2ae62d4 100644 --- a/trust/Makefile.am +++ b/trust/Makefile.am @@ -38,8 +38,7 @@ TRUST_SRCS = \ configdir = $(p11_package_config_modules) config_DATA = trust/p11-kit-trust.module -moduledir = $(p11_module_path) -module_LTLIBRARIES = \ +module_LTLIBRARIES += \ p11-kit-trust.la p11_kit_trust_la_CFLAGS = \ -- cgit v1.1