Skip to content

Commit 3f29d9e

Browse files
gnoackgregkh
authored andcommitted
TIOCSTI: Document CAP_SYS_ADMIN behaviour in Kconfig
Clarifies that the LEGACY_TIOCSTI setting is safe to turn off even when running BRLTTY, as it was introduced in commit 690c8b8 ("TIOCSTI: always enable for CAP_SYS_ADMIN"). Signed-off-by: Günther Noack <gnoack3000@gmail.com> Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Link: https://lore.kernel.org/r/20230808201115.23993-1-gnoack3000@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent dfe2aeb commit 3f29d9e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/tty/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ config LEGACY_TIOCSTI
164164
userspace depends on this functionality to continue operating
165165
normally.
166166

167+
Processes which run with CAP_SYS_ADMIN, such as BRLTTY, can
168+
use TIOCSTI even when this is set to N.
169+
167170
This functionality can be changed at runtime with the
168171
dev.tty.legacy_tiocsti sysctl. This configuration option sets
169172
the default value of the sysctl.

0 commit comments

Comments
 (0)