From cd5c913dc7fbd83769ef3fc8a18dbb1a22717e9e Mon Sep 17 00:00:00 2001 From: "Zheng, Qi" Date: Thu, 3 Mar 2022 17:13:11 +0800 Subject: [PATCH] [tools] Checking aesm service is not necessary for SGX2 --- tools/occlum | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/occlum b/tools/occlum index bd3a4580..cc23ccba 100755 --- a/tools/occlum +++ b/tools/occlum @@ -121,6 +121,12 @@ check_aesm_service() { return fi + # AESM is not necessary for SGX2 + lscpu | grep sgx_lc > /dev/null 2>&1 + if [ $? -eq 0 ]; then + return + fi + AESM_SOCKET_FILE=/var/run/aesmd/aesm.socket for i in $(seq 1 3); do if [ -S "$AESM_SOCKET_FILE" ]; then