drivers/tty: require read access for controlling terminal
authorJann Horn <jann@thejh.net>
Sun, 4 Oct 2015 17:29:12 +0000 (19:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 18:20:30 +0000 (19:20 +0100)
commit0c55627167870255158db1cde0d28366f91c8872
treeea04d97cb79cc262364468e0741cfa3dfb1afabd
parent3c5a0357fdb3a9116a48dbdb0abb91fd23fbff80
drivers/tty: require read access for controlling terminal

This is mostly a hardening fix, given that write-only access to other
users' ttys is usually only given through setgid tty executables.

Signed-off-by: Jann Horn <jann@thejh.net>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_io.c