tty: Move sysctl setup into "core" tty logic
authorKees Cook <keescook@chromium.org>
Sat, 22 Oct 2022 18:29:48 +0000 (11:29 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Nov 2022 00:58:03 +0000 (01:58 +0100)
commit5fd8c2d3de3dd3cc6d36a0c7a08e44cd5bf173e6
treec1dd11d0d8a97d36a88c58c6a6964f06cbc26e9b
parent72da688b457d738b943016dabc603efb1be5f4e1
tty: Move sysctl setup into "core" tty logic

In preparation for adding another sysctl to the tty subsystem, move the
tty setup code into the "core" tty code, which contains tty_init() itself.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20221022182949.2684794-1-keescook@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty.h
drivers/tty/tty_io.c
drivers/tty/tty_ldisc.c