1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:48:12 +00:00

Kernel: Require "tty" for ioctl() on TTY and MasterPTY

SystemServer now pledges "tty" since it's used when spawning services.
This commit is contained in:
Andreas Kling 2020-01-12 13:28:45 +01:00
parent 35c84504cd
commit 62a191b59a
3 changed files with 3 additions and 1 deletions

View file

@ -98,6 +98,7 @@ void MasterPTY::close()
int MasterPTY::ioctl(FileDescription& description, unsigned request, unsigned arg)
{
REQUIRE_PROMISE(tty);
if (!m_slave)
return -EIO;
if (request == TIOCSWINSZ || request == TIOCGPGRP)