mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
Kernel: Added TIOCSTI ioctl placeholder (#6037)
Added a dummy TIOCSTI ioctl placeholder. This is a dangerous ioctl that can be used to inject input into a tty. Added for compatibility. Always fails with EIO.
This commit is contained in:
parent
6718941715
commit
19c578024b
Notes:
sideshowbarker
2024-07-18 20:56:29 +09:00
Author: https://github.com/Baitinq 🔰 Commit: https://github.com/SerenityOS/serenity/commit/19c578024bf Pull-request: https://github.com/SerenityOS/serenity/pull/6037
@ -414,6 +414,8 @@ int TTY::ioctl(FileDescription&, unsigned request, FlatPtr arg)
|
||||
case TIOCSCTTY:
|
||||
current_process.set_tty(this);
|
||||
return 0;
|
||||
case TIOCSTI:
|
||||
return -EIO;
|
||||
case TIOCNOTTY:
|
||||
current_process.set_tty(nullptr);
|
||||
return 0;
|
||||
|
@ -55,6 +55,7 @@ enum IOCtlNumber {
|
||||
TCFLSH,
|
||||
TIOCGWINSZ,
|
||||
TIOCSCTTY,
|
||||
TIOCSTI,
|
||||
TIOCNOTTY,
|
||||
TIOCSWINSZ,
|
||||
FB_IOCTL_GET_SIZE_IN_BYTES,
|
||||
@ -81,6 +82,7 @@ enum IOCtlNumber {
|
||||
#define TCFLSH TCFLSH
|
||||
#define TIOCGWINSZ TIOCGWINSZ
|
||||
#define TIOCSCTTY TIOCSCTTY
|
||||
#define TIOCSTI TIOCSTI
|
||||
#define TIOCNOTTY TIOCNOTTY
|
||||
#define TIOCSWINSZ TIOCSWINSZ
|
||||
#define FB_IOCTL_GET_SIZE_IN_BYTES FB_IOCTL_GET_SIZE_IN_BYTES
|
||||
|
Loading…
Reference in New Issue
Block a user