Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ISV product ID and ISV SVN fields to manifest #502

Merged
merged 1 commit into from
Oct 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions openfl-gramine/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
ARCH_LIBDIR ?= /lib/$(shell $(CC) -dumpmachine)

# Enclave attributes to the manifest
SGX_ISVPRODID ?= 0
SGX_ISVSVN ?= 0

# This is a signer key on the BUILDING machine
SGX_SIGNER_KEY ?= /key.pem

Expand All @@ -20,6 +24,8 @@ openfl.manifest: openfl.manifest.template
gramine-manifest \
-Dlog_level=$(GRAMINE_LOG_LEVEL) \
-Darch_libdir=$(ARCH_LIBDIR) \
-Disvprodid=$(SGX_ISVPRODID) \
-Disvsvn=$(SGX_ISVSVN) \
-Dno_proxy=$(no_proxy) \
-Dhttp_proxy=$(http_proxy) \
-Dhttps_proxy=$(https_proxy) \
Expand Down
3 changes: 3 additions & 0 deletions openfl-gramine/openfl.manifest.template
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ sys.stack.size = "4M"
sgx.thread_num = 512
#sys.brk.max_size = "1M"

sgx.isvprodid = {{ isvprodid }}
sgx.isvsvn = {{ isvsvn }}

sgx.trusted_files = [
"file:/usr/local/bin/python3.8",
"file:{{ gramine.runtimedir() }}/",
Expand Down