Reputation: 313
I gather that SGX enclaves run at ring 3. I want to run a program inside SGX enclave which will want to access kernel data structures and files. Is there any way I could achieve this?
In other words, can we run SGX enclaves using sudo with root privileges?
Upvotes: 1
Views: 414
Reputation: 416
The way to want to access kernel data structure maybe through OCALL. You can call an OCALL inside of the enclave and let the untrusted code/host application call some system call functions to fetch the data you want.
Upvotes: 0
Reputation: 361
SGX Enclaves currently only allow for Ring 3 code execution. Intel SGX enclave runs in ring 3 only, no kernel mode. Intel SGX objective is secure the application in ring 3 itself.
Upvotes: 1