From 316dd805667134e67d367389bd6d9f78a5e896f6 Mon Sep 17 00:00:00 2001 From: w00559322 Date: Thu, 15 Sep 2022 12:20:29 +0800 Subject: [PATCH] Fix the failure to execute the post script of the sgx-pck-id-retrieval-tool --- linux-sgx.spec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/linux-sgx.spec b/linux-sgx.spec index ddd24cb..751c38f 100644 --- a/linux-sgx.spec +++ b/linux-sgx.spec @@ -1,6 +1,6 @@ Name: linux-sgx Version: 2.11.100 -Release: 11 +Release: 12 Summary: Intel(R) Software Guard Extensions for Linux* OS ExclusiveArch: x86_64 License: BSD-3-Clause @@ -747,7 +747,7 @@ fi ################################################################################ # Install the SGX_PCK_ID_RETRIEVE_TOOL -ln -s /opt/intel/sgx-pck-id-retrieval-tool/PCKIDRetrievalTool /usr/local/bin/PCKIDRetrievalTool +ln -sf /opt/intel/sgx-pck-id-retrieval-tool/PCKIDRetrievalTool /usr/local/bin/PCKIDRetrievalTool retval=$? if test $retval -ne 0; then @@ -836,7 +836,9 @@ echo -e "Uninstallation succeed!" %postun -n sgx-pck-id-retrieval-tool # Removing SGX_PCK_ID_RETRIEVE_TOOL soft link file -rm -f /usr/local/bin/PCKIDRetrievalTool +if [ "$1" = "0" ]; then + rm -f /usr/local/bin/PCKIDRetrievalTool +fi echo -e "Uninstallation succeed!" @@ -933,6 +935,9 @@ fi %files -n sgx-ra-service -f %{TOOLS_INSTALLER_RPM_DIR}/sgx-ra-service/build/list-sgx-ra-service %changelog +* Thu Sep 15 2022 wangyu - 2.11.100-12 +- Fix the failure to execute the post script of the sgx-pck-id-retrieval-tool + * Sat Sep 03 2022 wangyu - 2.11.100-11 - Fix CVE-2022-2068 CVE-2022-0778 CVE-2022-1292 CVE-2022-2097 -- Gitee