Files
ahp 301781cdce Linux: a privileged container no longer breaks the host's terminals
A privileged container gets devtmpfs as its /dev, and devtmpfs is one
filesystem for the whole kernel: on a Linux host, where there is no VM,
it is the host's /dev. Setting up the container replaced the host's
/dev/ptmx with a link to pts/ptmx, which is mode 000 in the host's
devpts, so no new terminal could start ("out of pty devices") until the
next boot. Turning on Kubernetes was enough: k3s runs privileged.

For a privileged container, the /dev links are now only added where
missing, and ptmx is left alone: the real ptmx opens the devpts mounted
beside it at /dev/pts, so the container still gets its own ptys.
2026-11-05 11:28:50 +03:30
..
2026-11-02 18:32:31 +01:00
2026-11-02 18:32:31 +01:00
2026-11-02 18:32:31 +01:00