init: optional vsock exec server so OCI runtimes can implement exec and signal delivery
Maintainers usually reply within 3 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 28/100
Research direction
Read the issue as a design proposal first: it names Builder::exec_server(port), krun_init_builder_exec_server(), the init config key exec_server, and VsockDevice::add_unix_port(port, path, true) as the touch points. Study the reference implementations before writing anything — the author's forks AlphaJack/libkrun branch init-exec-server and AlphaJack/crun branch krun-exec, plus containers/crun#2090, #2158 and libkrun#667. Done means the three open questions (forked server process, fixed vs configurable port, whether to carry OCI rlimits/caps) are answered by maintainers and a framed protocol covering spawn/stdio/winsize/signals/exit lands with tests; not startable as-is.
Written by the indexing model from the issue text.
Description
krun containers can't do podman exec or health checks (containers/crun#2090) and podman stop can't reach the workload (#10, containers/crun#2158), because nothing on the host can talk to a process inside the VM.
Proposal: an opt-in server in the init binary, exec_server: {port} in the init config, exposed through Builder::exec_server(port) / krun_init_builder_exec_server(). The VMM maps the port to a Unix socket with VsockDevice::add_unix_port(port, path, true).
Small framed protocol (type u8, len u32 LE), host-CID only: spawn a process with argv/env/cwd/uid/gid/pty, relay stdio, winsize and signals, report the exit status; plus a request that signals the workload. Also covers the GitLab runner case in #667.
I've tested this approach end-to-end with podman 6.1 on a forked libkrun2 and crun.
Questions before I open the PR:
- is a forked server process from init acceptable (thread can't survive KRUN_INIT_PID1=1)
- should the port be fixed or configurable
- should the exec'd process also get the OCI rlimits/caps or is uid/gid enough?
- Dominant language
- Rust
- Stars
- 2.8k
- Forks
- 279
- Avg merge
- 5d 19h
- Merged PRs (30d)
- 48
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from libkrun/libkrun
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
libkrun/libkrun#895 · 2 comments ·
Maintainers usually reply within 3 days
-
virtio/fs/windows: the owner, mode and xattrs of a symlink are read and written on its target (CVE-2026-135101)Possibly taken @nuri-yoo claimed this today. Open
Difficulty 4/5 3-5 days Newbie friendliness 20/100
Maintainers usually reply within 3 days
-
virtio/fs/windows: rename and link act on another entry when a name ends in a dot or a space (CVE-2026-135102)Possibly taken @nuri-yoo claimed this today. Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Maintainers usually reply within 3 days
-
Difficulty 4/5 1-2 days Newbie friendliness 52/100
Maintainers usually reply within 3 days
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
difficulty: easy docs help wanted tooling
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
-
bug help wanted ui
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
userFRM/egui-charts#4386 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
eliasstravik/herdr-projects#1605 · 1 comment ·