lsds / sgx-lkl-musl Goto Github PK
View Code? Open in Web Editor NEWModified musl libc for SGX-LKL
License: Other
Modified musl libc for SGX-LKL
License: Other
There is a shortcut, which delegates read/readv of the file descriptor 0 (usually stdin) to a host read/readv:
sgx-lkl-musl/src/internal/syscall.h
Line 182 in 0408574
This becomes a problem if some program has used dup2 to alter the file descriptor association. This is the case for dd. The fix is not so obvious but maybe there is a way to check if fd 0 is actually the host tty.
Per #25.
Check to see if the enclave_mmap call in expand_heap.c can be safely turned into an mmap call.
See here:
sgx-lkl-musl/src/conf/sysconf.c
Line 30 in 22c91c2
nproc_onln
instead of nproc_conf
or is it correct to ignore nproc_onln
here?
@davidchisnall @vtikoo: we have an SGX-LKL-specific entry for AT_HW_MODE
in elf.h. I've started putting the attestation evidence into auxv as well, but I'm wondering whether this is the right place for these definitions. It looks like I can't see them from my test program; is the plan to make them available via #include <elf.h>
(and my include paths are wrong) or should this go elsewhere?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.