Replies: 2 comments
-
@kvinwang Thanks for your question! I replied to the corresponding issue reported. Let's discuss further there. |
Beta Was this translation helpful? Give feedback.
0 replies
-
The discussion was moved to #1504. I'm closing this one to avoid duplication. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there,
We've built a graime based app which using encrypted files with key_name=
_sgx_enclave
. After deployment, many customer report that the app can not open the encrypted files with aPermission Denied
error after a system reboot. Some of the machine have a linux kernel update during the reboot, some haven't.I can reproduce the issue on Ubuntu 20.04 by writing the encrypted file in one verison of kernel and reboot to anthor version of kernel to read the file.
I also tried removing the mask bits as bellow, but didn't help, it still can not open a file saved by the app running on a different version kernel.
So my question is:
more info
The configuration for the encrypted files we used is:
The kernel versions I switched between are:
Update
I just tried to call the EGETKEY directly inside the workload, and found it never change between the two kernel version. So, I think this should be a Gramine issue.
The code I used to repoduce it is here.
Steps to reproduce:
git clone https://github.com/kvinwang/gramine-encrypted-files-demo && cd gramine-encrypted-files-demo
make SGX=1
./run.sh
It would show the following logs:
./run.sh
againIt now show the same egetkey result but failed to read the encrypted files as below:
Beta Was this translation helpful? Give feedback.
All reactions