From 0399d88f43a5fb2694aa33e2aef1dce50e6e8f1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Tue, 27 Feb 2024 15:46:41 +0000 Subject: [PATCH] Look for versioned libsgx_urts.so.2 library in PCKRetrievalTool MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Other code is already looking for the versioned libsgx_urts.so.2 library, so switch to that for PCKRetrievalTool too. The unversioned libraries are typically only installed by distros in -devel packages, not the runtime packages. Signed-off-by: Daniel P. Berrangé --- tools/PCKRetrievalTool/App/utility.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/PCKRetrievalTool/App/utility.cpp b/tools/PCKRetrievalTool/App/utility.cpp index b2c9307a..dc6758fb 100644 --- a/tools/PCKRetrievalTool/App/utility.cpp +++ b/tools/PCKRetrievalTool/App/utility.cpp @@ -82,7 +82,7 @@ typedef sgx_status_t (SGXAPI *sgx_create_enclave_func_t)(const LPCSTR file_name, #else #define PCE_ENCLAVE_NAME "libsgx_pce.signed.so.1" #define ID_ENCLAVE_NAME "libsgx_id_enclave.signed.so.1" -#define SGX_URTS_LIBRARY "libsgx_urts.so" +#define SGX_URTS_LIBRARY "libsgx_urts.so.2" #define SGX_MULTI_PACKAGE_AGENT_UEFI_LIBRARY "libmpa_uefi.so.1" #define FINDFUNCTIONSYM dlsym #define CLOSELIBRARYHANDLE dlclose @@ -204,7 +204,7 @@ bool get_urts_library_handle() #else sgx_urts_handle = dlopen(SGX_URTS_LIBRARY, RTLD_LAZY); if (sgx_urts_handle == NULL) { - printf("ERROR: didn't find the sgx_urts.so library, please make sure you have installed sgx_urts installer package. \n"); + printf("ERROR: didn't find the " SGX_URTS_LIBRARY " library, please make sure you have installed sgx_urts installer package. \n"); return false; } #endif