Repository navigation
v0.9.31
kern exec now obeys the box's limits. It did not.
A command run through kern exec was placed in the caller's cgroup, outside the box's --memory and --pids-limit, and said nothing about it:
box PID 1 .../kern.slice/kern-box-<tag>-<pid> capped
the kern exec'd process .../app.slice/app-<the caller>.scope the caller's
Namespaces and seccomp always held; it is the resource cap that leaked, so a fork bomb or a memory hog started with kern exec ran without the ceiling the box was given. Upgrade if you use kern exec on a box with limits.
The placement has to happen before the namespaces are joined, and that costs an RCU grace period. The faster kern exec in v0.9.3 was faster because it was not applying the cap. Box start is unaffected.
Also in this release
- a command killed by the box's memory cap now says why. It exited
-9with an empty screen. - a box whose registry record was lost stays visible.
/run/useris swept bysystemd-tmpfilesand cleared on logout; the box kept running whilepsstopped showing it andkern stopcould not reach it. FROM <stage>builds an image that runs. It printedbuiltand failed atkern boxwith "no layers in manifest".COPYkeeps directory modes. A 1777/tmpor a 2755 setgid dir came out 0755.- compose reads folded
command:lines that continue with-(--source,-drive,-netdev), andtmpfs:has one grammar again:--tmpfs /run:size=64mused to fail on the exact spellingkern composeproduced. kern build prune 0refuses instead of silently keeping 20.- #8: every box mounts its own devpts, so
forkpty(3)/openptywork in a detached box.
Known and unchanged
- the resource caps have one witness. CI does not start boxes and the second reviewer's host has no cgroup delegation, so
--memory/--pids-limitenforcement is verified on one machine. - the squash shared by
FROM <stage>andpushloses hard links and fills sparse files. - compose networks do not isolate services from each other: one stack is one namespace, and
upsays so.
Full detail in CHANGELOG.md.