Replies: 1 comment 3 replies
-
@pbeza In your
Also, the LD_LIBRARY_PATH line should be like this:
If you would take an example like Blender, you would notice that there is a dir entry |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
TL;DR
I'm trying to add SGX support to the
powdr_revm
project using Gramine. From what I've learned from the Gramine documentation, all I need to do pretty much comes down to creating a Gramine manifest template file, so I've prepared one, but I get an error when I try to rungramine-sgx powdr_revm
orgramine-direct powdr_revm
:There seems to be something wrong with my manifest file, but I'm not able to pinpoint the root cause. Can you please help me?
Details
Step by step how to reproduce my problem:
Clone the appropriate repository (this is my fork of
powdr_revm
, which fixes some problems with the original repo):Go to the relevant directory:
Run the app without SGX/Gramine (to prove it works fine without Gramine):
It runs successfully! Great!
Now try adding SGX/Gramine into the picture. This is the project directory structure as it was after the project was built:
Go to the
target/debug
directory where we will create Gramine manifest file:Create
powdr_revm.manifest.template
file with the following content (based on the Gramine'shelloworld
demo template manifest file):Process the above template file (it creates
powdr_revm.manifest
file):Sign the manifest file:
We can see that so far we have effectively created 4 files:
powdr_revm.manifest
,powdr_revm.manifest.sgx
,powdr_revm.manifest.template
,powdr_revm.sig
:We should be good to go, so let's run
powdr_revm
with Gramine:Oops... It failed! Why?
Let's try the same with
gramine-direct
:It is still failing with the same error message. Why?
Notice, we have
libgcc_s.so.1
in/usr/lib/x86_64-linux-gnu/
that we referred in thetrusted_files
section of the manifest file:In case you are wondering if there is a
/lib
directory on my system (that is referred in the manifest file):Other miscellaneous information you may find useful:
I think there is something wrong with the manifest file. Can you please help me fix it? Any help appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions