-
Notifications
You must be signed in to change notification settings - Fork 91
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
TLS support in HW mode #48
Comments
Thanks for reporting this! This is a bug. You can access the help text via Fixed in e3fc437. |
thanks, help text was displayed, but once i followed the instructions: root@vitro ~/sgx-lkl/tools/kmod-set-fsgsbase # make set-cr4-fsgsbase the results are even worse than before, i just get a segfault: SGXLKL_HEAP=900M SGXLKL_KEY=/root/sgx-lkl/build/config/enclave_debug.key sgx-lkl-run ./sgxlkl-miniroot-fs.img /bin/node --version |
What is
|
ok this works, thanks! there is a slight problem with sgx-lkl-disk on newer ubuntu versions DNS will not work in chroot without something like: mount --bind /etc/resolv.conf /mnt/alpine/etc/resolv.conf |
I am trying to run nodejs via
SGXLKL_HEAP=900M SGXLKL_KEY=/root/sgx-lkl/build/config/enclave_debug.key sgx-lkl-run ./sgxlkl-miniroot-fs.img /usr/bin/node --version
[ SGX-LKL ] Warning: The application requires thread-local storage (TLS), but the current system configuration does not allow SGX-LKL to provide full TLS support in hardware mode. See sgx-lkl-run --help-tls for more information.
v8.14.0
so I run
sgx-lkl-run --help-tls
[ SGX-LKL ] Warning: Insufficient arguments. No application path provided.
Usage: sgx-lkl-run [--config=path/to/config] [--app=path/to/appconfig] path/to/encl/file/system path/to/executable
path/to/config: Optional: Path to JSON configuration file. If file system image is provided via configuration file it must not be provided on the command line (see below).
path/to/appconfig: Optional: Path to JSON application configuration file. Can be used to provide application configuration (executable path, arguments, environment variables). Not available in release mode.
path/to/encl/file/system: Path to the ext4 enclave file system image.
path/to/executable: Path to executable on enclave file system.
: Arguments for executable.
sgx-lkl-run --version to print version information.
sgx-lkl-run --help to print this help.
sgx-lkl-run --help-tls to print help on how to enable thread-local storage support in hardware mode.
but there is no info at all about how to enable thread-local storage support in hardware mode ...
please advise, thanks
The text was updated successfully, but these errors were encountered: