This is a note to let you know that I've just added the patch titled TIOCSTI: Document CAP_SYS_ADMIN behaviour in Kconfig to the 6.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: tiocsti-document-cap_sys_admin-behaviour-in-kconfig.patch and it can be found in the queue-6.4 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 3f29d9ee323ae5cda59d144d1f8b0b10ea065be0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Noack?= <gnoack3000@xxxxxxxxx> Date: Tue, 8 Aug 2023 22:11:12 +0200 Subject: TIOCSTI: Document CAP_SYS_ADMIN behaviour in Kconfig MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Günther Noack <gnoack3000@xxxxxxxxx> commit 3f29d9ee323ae5cda59d144d1f8b0b10ea065be0 upstream. Clarifies that the LEGACY_TIOCSTI setting is safe to turn off even when running BRLTTY, as it was introduced in commit 690c8b804ad2 ("TIOCSTI: always enable for CAP_SYS_ADMIN"). Signed-off-by: Günther Noack <gnoack3000@xxxxxxxxx> Reviewed-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx> Link: https://lore.kernel.org/r/20230808201115.23993-1-gnoack3000@xxxxxxxxx Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/tty/Kconfig | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/tty/Kconfig +++ b/drivers/tty/Kconfig @@ -164,6 +164,9 @@ config LEGACY_TIOCSTI userspace depends on this functionality to continue operating normally. + Processes which run with CAP_SYS_ADMIN, such as BRLTTY, can + use TIOCSTI even when this is set to N. + This functionality can be changed at runtime with the dev.tty.legacy_tiocsti sysctl. This configuration option sets the default value of the sysctl. Patches currently in stable-queue which might be from gnoack3000@xxxxxxxxx are queue-6.4/tiocsti-document-cap_sys_admin-behaviour-in-kconfig.patch