-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sgx): put all python packages into trusted_files (#1095)
* feat(sgx): support tensorflow remote attestation in list * fix(sgx): improve EPC cost * fix(sgx): fix memory leak of json_engine * fix(sgx):misspell Ps->ps * fix(sgx): fix get_token * feat(sgx): put all python packages into trusted_files
- Loading branch information
Showing
2 changed files
with
31 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,30 @@ | ||
#!/bin/bash | ||
|
||
cd /gramine/CI-Examples/generate-token/ | ||
make clean > /dev/null | ||
export SGX=1 | ||
export SGX_SIGNER_KEY=/root/.config/gramine/enclave-key.pem | ||
make all > /dev/null | ||
if [ $? -eq 0 ]; then | ||
gramine-sgx-get-token -s python.sig -o /dev/null | ||
fi | ||
make clean > /dev/null | ||
function get_token(){ | ||
local need_clean=0 | ||
cd /gramine/CI-Examples/generate-token/ | ||
make clean > /dev/null | ||
export SGX=1 | ||
export SGX_SIGNER_KEY=/root/.config/gramine/enclave-key.pem | ||
|
||
# mkdir and make | ||
if [ ! -d "/gramine/leader" ] || [ ! -d "/gramine/follower" ]; then | ||
mkdir -p /gramine/leader | ||
mkdir -p /gramine/follower | ||
need_clean=1 | ||
fi | ||
make all > /dev/null | ||
if [ $? -eq 0 ]; then | ||
gramine-sgx-get-token -s python.sig -o /dev/null | ||
fi | ||
|
||
# clean | ||
make clean > /dev/null | ||
if [ $need_clean==1 ]; then | ||
rm -rf /gramine/leader | ||
rm -rf /gramine/follower | ||
fi | ||
cd - | ||
} | ||
|
||
get_token |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters