jail: add option to provide /dev/console to containers
authorDaniel Golle <daniel@makrotopia.org>
Sun, 12 Apr 2020 21:35:25 +0000 (22:35 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 15 May 2020 18:10:43 +0000 (19:10 +0100)
commit1ab539b3a8a0070b493112c8263ab380a689db66
tree89b09e05ca987a36c3fcf9ed8e3c8e9db91643b8
parent7e150f68e666e331e6b970e2ceae1a6a88743bfd
jail: add option to provide /dev/console to containers

Create UNIX/98 PTY, pass master fd to procd and setup mount-bind of
slave PTS device on /dev/console inside jail.
Allow attaching to an instance's console by using the newly introduced
ujail-console command (no multiplexing for now).

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
CMakeLists.txt
jail/console.c [new file with mode: 0644]
jail/jail.c
service/instance.c
service/instance.h
service/service.c