From 213f6688a56e7bcd1205c77dc79c3e5cfee817fe Mon Sep 17 00:00:00 2001 From: Nicolas Lacasse Date: Wed, 3 Oct 2018 17:28:52 -0700 Subject: Implement TIOCSCTTY ioctl as a noop. PiperOrigin-RevId: 215658757 Change-Id: If63b33293f3e53a7f607ae72daa79e2b7ef6fcfd --- pkg/sentry/fs/tty/slave.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pkg/sentry/fs/tty') diff --git a/pkg/sentry/fs/tty/slave.go b/pkg/sentry/fs/tty/slave.go index 963331b9b..4a0d4fdb9 100644 --- a/pkg/sentry/fs/tty/slave.go +++ b/pkg/sentry/fs/tty/slave.go @@ -154,6 +154,12 @@ func (sf *slaveFileOperations) Ioctl(ctx context.Context, io usermem.IO, args ar return 0, sf.si.t.ld.windowSize(ctx, io, args) case linux.TIOCSWINSZ: return 0, sf.si.t.ld.setWindowSize(ctx, io, args) + case linux.TIOCSCTTY: + // Make the given terminal the controlling terminal of the + // calling process. + // TODO: Implement once we have support for job + // control. + return 0, nil default: return 0, syserror.ENOTTY } -- cgit v1.2.3