Can 2 processes run on same enclave in intel sgx?

403 Views Asked by At

I know intel sgx supports running multiple threads on one enclave. But I'curious that whether I can use fork to run 2 processes on one enclave?

1

There are 1 best solutions below

0
On

What you cannot do: have more that 1 program (or process) to use an enclave. Only the process that has created the enclave can use it.

What you can do: have more that 1 thread inside an enclave, but you have to create them in the untrusted part of the app. In your XML enclave config file there are 2 values, TCSNum and TCSPolicy.

For more information, see here and here.