]> git.baikalelectronics.ru Git - kernel.git/commit
lockdown: Lock down TIOCSSERIAL
authorDavid Howells <dhowells@redhat.com>
Tue, 20 Aug 2019 00:17:54 +0000 (17:17 -0700)
committerJames Morris <jmorris@namei.org>
Tue, 20 Aug 2019 04:54:16 +0000 (21:54 -0700)
commit6d040d6bc71fec0032f2fdd8664414bf5b1786ef
tree334e6911930274ad592b1620fc0a385f2d532835
parentdad6dbd622de56f542591a22f96f452e198c729f
lockdown: Lock down TIOCSSERIAL

Lock down TIOCSSERIAL as that can be used to change the ioport and irq
settings on a serial port.  This only appears to be an issue for the serial
drivers that use the core serial code.  All other drivers seem to either
ignore attempts to change port/irq or give an error.

Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Matthew Garrett <mjg59@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
cc: Jiri Slaby <jslaby@suse.com>
Cc: linux-serial@vger.kernel.org
Signed-off-by: James Morris <jmorris@namei.org>
drivers/tty/serial/serial_core.c
include/linux/security.h
security/lockdown/lockdown.c