Comments (9)
Yes, I found the pal-Linux-SGX and it is working now. Thank you for your help!
And the following command need to be added.
sudo sysctl vm.mmap_min_addr=0
Yes, making a manifest will take some time before I can port the binary, thank you for your heads-up!
from graphene.
The test/native directory is deprecated. We have been making some changes to the build system that probably broke this.
Are there specific unit tests in that directory that you want to run? If so, we can probably port them into the regression testing framework.
from graphene.
Thank you for your quick response.
I am trying to test graphene with sgx on my machine. I am working on a project which need to port a legacy application into enclave. But it turns out I cannot make it work following the tutorials.
When I follow the , I have the issue I said in this thread.
When I follow , shell says pal-Linux is not built, or security mode is not supported.
So can you inform me where can I know how to put graphene into action?
Thank you.
from graphene.
I've updated the wiki page on quick-start instructions.
from graphene.
If the build succeeded, you should have a pal-Linux in /Runtime. If you built with SGX=1, you will have a pal-Linux-SGX in /Runtime.
If you don't have these, please post a more detailed set of command output from the build so we can see what is going wrong.
Once you have these, it should be as simple* as:
path/to/Pal [executable|manifest]
Caveat: you also need to make a manifest, which is less simple; this can be pattern-matched on existing manifests.
from graphene.
Still for the Quick start tutorial, when I do last part:
cd LibOS/shim/test/apps/lmbench
make SGX=1
it says:
make[1]: Leaving directory `/home/rd/Downloads/graphene-master/LibOS/shim/test/apps/lmbench/lmbench-2.5/src'
ln -sf ../../../Makefile.lmbench lmbench-2.5/bin/linux/Makefile
make -C lmbench-2.5/bin/linux/
make[1]: Entering directory `/home/rd/Downloads/graphene-master/LibOS/shim/test/apps/lmbench/lmbench-2.5/bin/linux'
Makefile:19: warning: overriding commands for target `pal_loader'
../../../../../Makefile:43: warning: ignoring old commands for target `pal_loader'
make[1]: *** No rule to make target ../../../../../pal_loader', needed by
pal_loader'. Stop.
make[1]: Leaving directory `/home/rd/Downloads/graphene-master/LibOS/shim/test/apps/lmbench/lmbench-2.5/bin/linux'
make: *** [build-manifest] Error 2
from graphene.
In the Quick start tutorial, while building the library OS
cd LibOS
make SGX=1
make[3]: Entering directory '/home/sgx/Desktop/graphene/Pal/lib'
[ atoi.o ]
[ strlen.o ]
[ memcmp.o ]
[ memcpy.o ]
[ wordcopy.o ]
[ memset.o ]
[ strchr.o ]
[ printfmt.o ]
[ hton.o ]
[ inet_pton.o ]
[ config.o ]
[ path.o ]
[ udivmodti4.o ]
[ cipher_wrap.o ]
[ dhm.o ]
[ cipher.o ]
[ rsa.o ]
[ cmac.o ]
[ sha256.o ]
[ md.o ]
[ aes.o ]
[ bignum.o ]
[ aesni.o ]
[ mbedtls_adapter.o ]
[ mbedtls_dh.o ]
[ graphene-lib.a ]
make[3]: Leaving directory '/home/sgx/Desktop/graphene/Pal/lib'
make[2]: *** No rule to make target '/home/sgx/Desktop/graphene/LibOS/shim/src/../../../Runtime/libpal-Linux-SGX.so', needed by 'libsysdb.so'. Stop.
make[2]: Leaving directory '/home/sgx/Desktop/graphene/LibOS/shim/src'
Makefile:13: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/sgx/Desktop/graphene/LibOS/shim'
Makefile:14: recipe for target 'all' failed
make: *** [all] Error 2
from graphene.
Are you sure you performed steps correctly? It looks like you are building LibOS without PAL. You first need to build PAL:
cd Pal/src
make SGX=1
Note that SGX=1
here is important.
from graphene.
Yes, it worked! Thank you very much!
from graphene.
Related Issues (20)
- Data transmission error with Python gRPC running in graphene HOT 9
- Huge performance drop when running pytorch training with graphene-sgx HOT 26
- Graphene-SGX: Syscalls wakes up early/prematurely on Server Machines HOT 12
- untrusted PAL sent PAL event HOT 10
- BUG() triggered during vfork and clone HOT 15
- With Go program, inside a docker container, bind fails with permission denied error, invalid handle error. HOT 7
- Workloads (Redis, Curl, R) failing with Out of memory PAL error after new manifest syntax to define lists of SGX trusted files. HOT 7
- Unable to Sign the graphenized Docker image using gsc sign-image: HOT 5
- RFC: Trusted files metadata sideloading
- [Error:38]Function not implemented. multiprocessing in graphene HOT 7
- How to transmit variables between SGX and untrusted environments HOT 4
- Function not implemented (src/ip.cpp:563) in testing GSC container HOT 2
- [Examples] Python Example Stuck Without Any Error Message HOT 1
- ModuleNotFoundError: No module named 'graphenelibos' HOT 5
- web server use golang, QPS(queries per second) is very low HOT 4
- File Listener Based on INOTIFY Throws Error HOT 1
- Issue with libprotobuf version. HOT 1
- Issue in Cloud Deployment to AKS HOT 3
- Decimal type prone to float rounding error. HOT 1
- pytorch sample config for better performance HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphene.