diff options
author | Daniel Golle <daniel@makrotopia.org> | 2020-04-12 22:35:25 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2020-05-15 19:10:43 +0100 |
commit | 1ab539b3a8a0070b493112c8263ab380a689db66 (patch) | |
tree | 89b09e05ca987a36c3fcf9ed8e3c8e9db91643b8 /service/instance.h | |
parent | 7e150f68e666e331e6b970e2ceae1a6a88743bfd (diff) | |
download | procd-1ab539b3a8a0070b493112c8263ab380a689db66.tar.gz |
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>
Diffstat (limited to 'service/instance.h')
-rw-r--r-- | service/instance.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/service/instance.h b/service/instance.h index 43a6561..4400cd4 100644 --- a/service/instance.h +++ b/service/instance.h @@ -32,6 +32,7 @@ struct jail { bool netns; bool userns; bool cgroupsns; + bool console; char *name; char *hostname; struct blobmsg_list mount; @@ -82,6 +83,8 @@ struct service_instance { struct uloop_timeout timeout; struct ustream_fd _stdout; struct ustream_fd _stderr; + struct ustream_fd console; + struct ustream_fd console_client; struct blob_attr *command; struct blob_attr *trigger; |