Skip to content

Commit

Permalink
Pass the --ecdsa option from Crust Node script ('crust start sworker'…
Browse files Browse the repository at this point in the history
…), so the same docker image can run under EPID mode even if the server supports ECDSA/DCAP.
  • Loading branch information
wuhaixian1984 committed Apr 23, 2024
1 parent 17d0a91 commit f73731d
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions docker/runner/start_sworker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,7 @@ sleep $wait_time

ps -ef | grep aesm

SGXTYPE=""
for el in $(cpuid | grep -i "SGX launch config" | awk '{print $NF}'); do
SGXTYPE="--ecdsa"
if [ x"$el" != x"true" ]; then
SGXTYPE=""
break
fi
done

if [ x"$SGXTYPE" = x"--ecdsa" ]; then
if [[ $ARGS = *"--ecdsa"* ]]; then
echo "Run pccs service under ECDSA mode. Wait $wait_time seconds for pccs service fully start"

cd /opt/intel/sgx-dcap-pccs
Expand All @@ -48,4 +39,4 @@ if [ x"$SGXTYPE" = x"--ecdsa" ]; then
fi

echo "Run sworker with arguments: $ARGS"
/opt/crust/crust-sworker/$version/bin/crust-sworker $SGXTYPE $ARGS
/opt/crust/crust-sworker/$version/bin/crust-sworker $ARGS

0 comments on commit f73731d

Please sign in to comment.