Skip to content

[AWS Nitro Enclaves] proc/self/exe operation not permitted

0

TL;DR: Giving privileged access to AWS Nitro Enclave

I am trying to launch a gVisor sandbox inside a AWS Nitro enclave. However, I am running into permission issues with message:

running container: creating container: cannot create gofer process: gofer: fork/exec /proc/self/exe: operation not permitted

When I try to run the underlying docker container locally, I have to use the --privileged flag to get give it the appropriate permissions.

How do I do the same for Nitro Enclave?

Let me know if any more information is needed from my end.

Thanks!

asked a year ago170 views
1 Answer
0

From gvisor documentation :

The Gofer is a standard host process which is started with each container and communicates with the Sentry via the 9P protocol over a socket or shared memory channel. The Sentry process is started in a restricted seccomp container without access to file system resources. The Gofer mediates all access to these resources, providing an additional level of isolation.

However when we talk about Nitro Enclaves, Enclaves are fully isolated virtual machines, hardened, and highly constrained. This makes me believe that the operations that gvisor might be trying to do would be outside the scope of what is available via Nitro Enclaves. The CPU and memory of an Enclave is completely Isolated and hence the resources that Gofer might be requesting access to would keep getting denied by the enclave.

How do I do the same for Nitro Enclave?

This is something that you might want to check from gVisor end if that even would be possible with the restrictions that Nitro Enclaves come with as we cannot say what the application might be trying to do on the OS level. Hope that helps.

https://gvisor.dev/

https://gvisor.dev/docs/

https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html

AWS
answered a year ago
EXPERT
reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.