Skip to main content

Module runtime

Module runtime 

Source

Functions§

launch_session
Instantiates the staged capsule and executes it.
stage_session
Resolves and verifies all artifacts, compiles components, and prepares session state.
warn_on_interpreter_runtime_grants
Warns (non-fatal, once per declared grant) for every capabilities.shell.interpreter_runtime entry. Declaring one narrows an allowlisted binary’s Landlock scope to specific host directories so a path-based interpreter can reach its stdlib — but it couples the capsule to a specific host distro/interpreter-version layout (e.g. /usr/lib/python3.11 stops resolving the moment the host ships Python 3.12), which the operator should see plainly. The durable fix is the still-unbuilt staged runtime bind-mount; this grant only bridges until then.
warn_on_workdir_exec
Warns (non-fatal, once per session) when a capsule declares capabilities.filesystem.workdir_exec: true.