mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:47:44 +00:00
Kernel: Require "stdio" pledge promise when calling get_root_session_id
This commit is contained in:
parent
a5ff6769f5
commit
16b6e644d7
1 changed files with 1 additions and 0 deletions
|
@ -141,6 +141,7 @@ ErrorOr<FlatPtr> Process::sys$setpgid(pid_t specified_pid, pid_t specified_pgid)
|
|||
|
||||
ErrorOr<FlatPtr> Process::sys$get_root_session_id(pid_t force_sid)
|
||||
{
|
||||
TRY(require_promise(Pledge::stdio));
|
||||
pid_t sid = (force_sid == -1) ? this->sid().value() : force_sid;
|
||||
if (sid == 0)
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue