File tree 3 files changed +6
-4
lines changed
parentchain/attestation/src
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ ENV BUILD_DIR=$HOME/tee-worker/omni-executor
69
69
COPY . $HOME
70
70
WORKDIR $BUILD_DIR
71
71
72
- RUN make
72
+ RUN make SGX=1 SGX_DEBUG=0
73
73
74
74
75
75
# ## Release image (with SGX Hardware)
@@ -91,12 +91,12 @@ RUN apt-get install -y \
91
91
curl \
92
92
libssl-dev \
93
93
clang \
94
+ pkg-config \
94
95
ca-certificates
95
96
96
97
RUN mkdir -p /wkdir /wkdir/local
97
98
98
99
COPY --from=sgx-builder $BUILD_DIR/omni-executor $BIN_DIR/omni-executor
99
- COPY --from=sgx-builder $BUILD_DIR/omni-executor.manifest $BIN_DIR/omni-executor.manifest
100
100
COPY --from=sgx-builder $BUILD_DIR/omni-executor.manifest.sgx $BIN_DIR/omni-executor.manifest.sgx
101
101
COPY --from=sgx-builder $BUILD_DIR/omni-executor.sig $BIN_DIR/omni-executor.sig
102
102
@@ -108,7 +108,7 @@ RUN groupadd -g 1000 ubuntu && \
108
108
RUN chmod +x $BIN_DIR/omni-executor && \
109
109
chown ubuntu:ubuntu * && \
110
110
ldd $BIN_DIR/omni-executor && $BIN_DIR/omni-executor --version && \
111
- ls -al $BIN_DIR
111
+ ls -al $BIN_DIR
112
112
113
113
USER ubuntu
114
114
Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ sgx.trusted_files = [
39
39
"file:/usr/lib/ssl/certs/ca-certificates.crt",
40
40
]
41
41
42
+ sgx.allowed_files = [ "file:/usr/lib/ssl/certs" ]
43
+
42
44
# The maximum number of threads in a single process needs to be declared in advance.
43
45
# You need to account for:
44
46
# - one main thread
Original file line number Diff line number Diff line change @@ -45,10 +45,10 @@ pub async fn perform_attestation(
45
45
f. write_all ( & content) . unwrap ( ) ;
46
46
47
47
quote = fs:: read ( "/dev/attestation/quote" ) . unwrap ( ) ;
48
- info ! ( "Attestation quote {:?}" , quote) ;
49
48
50
49
let dcap_quote: DcapQuote =
51
50
DcapQuote :: decode ( & mut quote. as_slice ( ) ) . expect ( "Failed to decode quote" ) ;
51
+ info ! ( "Attestation dcap_quote {:?}" , dcap_quote) ;
52
52
53
53
mrenclave = dcap_quote. body . mr_enclave ;
54
54
info ! ( "MRENCLAVE in hex {:?}" , hex:: encode( mrenclave) ) ;
You can’t perform that action at this time.
0 commit comments