tty: Only allow slave pty as controlling tty
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 8 Nov 2015 14:06:05 +0000 (09:06 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Dec 2015 03:59:48 +0000 (19:59 -0800)
commitd1d3a0f7448fe038ce7e94e2c281dcd2f91b23c6
tree8de2708afcb48978fc33e2d0e9a5e9fc4ddce8d7
parent83db1df4461c8731a413cd6cb1cbf351f01a57b1
tty: Only allow slave pty as controlling tty

A master pty should never be a controlling tty in Linux; if the
master pty is specified to ioctl(TIOCSCTTY), silently substitute the slave
pty as the controlling tty.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_io.c
This page took 0.080593 seconds and 5 git commands to generate.