gvisor/pkg/sentry/fs/host
Nicolas Lacasse 106de2182d runsc: Terminal support for "docker exec -ti".
This CL adds terminal support for "docker exec".  We previously only supported
consoles for the container process, but not exec processes.

The SYS_IOCTL syscall was added to the default seccomp filter list, but only
for ioctls that get/set winsize and termios structs. We need to allow these
ioctl for all containers because it's possible to run "exec -ti" on a
container that was started without an attached console, after the filters
have been installed.

Note that control-character signals are still not properly supported.

Tested with:
	$ docker run --runtime=runsc -it alpine
In another terminial:
	$ docker exec -it <containerid> /bin/sh

PiperOrigin-RevId: 210185456
Change-Id: I6d2401e53a7697bb988c120a8961505c335f96d9
2018-08-24 17:43:21 -07:00
..
BUILD runsc: Terminal support for "docker exec -ti". 2018-08-24 17:43:21 -07:00
control.go Check in gVisor. 2018-04-28 01:44:26 -04:00
descriptor.go Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00
descriptor_state.go Check in gVisor. 2018-04-28 01:44:26 -04:00
device.go Check in gVisor. 2018-04-28 01:44:26 -04:00
file.go runsc: Terminal support for "docker exec -ti". 2018-08-24 17:43:21 -07:00
fs.go Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00
fs_test.go Fix warning: redundant if ...; err != nil check, just return error instead. 2018-05-08 09:51:56 -07:00
inode.go Enable checkpoint/restore in cases of UDS use. 2018-08-10 14:33:20 -07:00
inode_state.go sentry: mark S/R stating errors as save rejections / fs corruptions. 2018-08-22 13:19:16 -07:00
inode_test.go Check in gVisor. 2018-04-28 01:44:26 -04:00
ioctl_unsafe.go runsc: Terminal support for "docker exec -ti". 2018-08-24 17:43:21 -07:00
socket.go stateify: make explicit mode no longer optional. 2018-08-03 12:09:13 -07:00
socket_state.go Check in gVisor. 2018-04-28 01:44:26 -04:00
socket_test.go Release mutex in BidirectionalConnect to avoid deadlock. 2018-05-16 13:07:12 -07:00
socket_unsafe.go Check in gVisor. 2018-04-28 01:44:26 -04:00
util.go Check in gVisor. 2018-04-28 01:44:26 -04:00
util_unsafe.go Check in gVisor. 2018-04-28 01:44:26 -04:00
wait_test.go Check in gVisor. 2018-04-28 01:44:26 -04:00