]> git.ipfire.org Git - thirdparty/systemd.git/commit
nspawn: allocate the pty used for /dev/console within the container
authorFranck Bui <fbui@suse.com>
Thu, 6 Jun 2019 08:05:33 +0000 (10:05 +0200)
committerFranck Bui <fbui@suse.com>
Tue, 18 Jun 2019 06:17:34 +0000 (08:17 +0200)
commit3acc84ebd9aebe8cf1771b42644ebbfbecdfaa37
tree357bd0a3ee41057cb98d2272c32ab5a4ba9d57a3
parentba72801d660a02429b6a0658db2dadfbe25bde04
nspawn: allocate the pty used for /dev/console within the container

The console tty is now allocated from within the container so it's not
necessary anymore to allocate it from the host and bind mount the pty slave
into the container. The pty master is sent to the host.

/dev/console is now a symlink pointing to the pty slave.

This might also be less confusing for applications running inside the container
and the overall result looks cleaner (we don't need to apply manually the
passed selinux context, if any, to the allocated pty for instance).
TODO
src/nspawn/nspawn.c