]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
tty: ldisc: add sysctl to prevent autoloading of ldiscs
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Jan 2019 16:26:42 +0000 (17:26 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commitd6f408acaeb266a77209b8f4d9108ef3270588b3
treec9c26c133a88f4e35dba7b7f462da503fd13a787
parenta7090dbe5d9fa4a05b2b2f77dc65360e28733cdf
tty: ldisc: add sysctl to prevent autoloading of ldiscs

BugLink: https://bugs.launchpad.net/bugs/1838116
commit 7c0cca7c847e6e019d67b7d793efbbe3b947d004 upstream.

By default, the kernel will automatically load the module of any line
dicipline that is asked for.  As this sometimes isn't the safest thing
to do, provide a sysctl to disable this feature.

By default, we set this to 'y' as that is the historical way that Linux
has worked, and we do not want to break working systems.  But in the
future, perhaps this can default to 'n' to prevent this functionality.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/tty/Kconfig
drivers/tty/tty_io.c
drivers/tty/tty_ldisc.c