diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-07-31 10:39:56 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-07-31 10:39:56 +0300 |
commit | fe3015748a905e08eb0e1750aa2928f520063d59 (patch) | |
tree | d15524d1f7931e8e5964e9ff8368792d09282da5 /drivers/tty/tty_io.c | |
parent | 16aae4c64600a6319a6f10dbff833fa198bf9599 (diff) | |
parent | 5d0c230f1de8c7515b6567d9afba1f196fb4e2f4 (diff) | |
download | linux-fe3015748a905e08eb0e1750aa2928f520063d59.tar.xz |
Merge 6.5-rc4 into tty-next
We need the serial/tty fixes in here as well for testing and future
development.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/tty_io.c')
-rw-r--r-- | drivers/tty/tty_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c index e23e416aae93..eb4e2e0e300d 100644 --- a/drivers/tty/tty_io.c +++ b/drivers/tty/tty_io.c @@ -2283,7 +2283,7 @@ static int tiocsti(struct tty_struct *tty, char __user *p) char ch, mbz = 0; struct tty_ldisc *ld; - if (!tty_legacy_tiocsti) + if (!tty_legacy_tiocsti && !capable(CAP_SYS_ADMIN)) return -EIO; if ((current->signal->tty != tty) && !capable(CAP_SYS_ADMIN)) |