-
Notifications
You must be signed in to change notification settings - Fork 405
Description
In the OCI container path, we do a few things to verify that the binary path pass in as part of the process block in the OCI spec exist and has the right permission. The path is usually an absolute path to a binary in the container rootfs. However, wasi and wasm have syntax that calls to a specific module of a wasm file. So the path becomes /some/path/x.wasm#module. This is not a valid path and will fail our check.
Specifically see the issue from runwasi. containerd/runwasi#194
There are two options I am contemplating:
- Provide a optional field in the libcontainer interface to make the verification optional.
- Move the verification logic into executor instead.
I like the simplicity of moving the verification logic into executor, but there is one down side. The executor will not be executed until youki start and youki create will no longer fail if the binary doesn't exist. This may also break some existing integration test and even break OCI compliance.
I have not decided on which path to take, but want this issue for tracking and discussion.