mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-08 17:47:18 +00:00
Let sys$sigaction() fail if called with SIGKILL or SIGSTOP.
This commit is contained in:
@@ -1737,8 +1737,7 @@ int Process::sys$sigpending(Unix::sigset_t* set)
|
||||
|
||||
int Process::sys$sigaction(int signum, const Unix::sigaction* act, Unix::sigaction* old_act)
|
||||
{
|
||||
// FIXME: Fail with -EINVAL if attepmting to change action for SIGKILL or SIGSTOP.
|
||||
if (signum < 1 || signum >= 32)
|
||||
if (signum < 1 || signum >= 32 || signum == SIGKILL || signum == SIGSTOP)
|
||||
return -EINVAL;
|
||||
if (!validate_read_typed(act))
|
||||
return -EFAULT;
|
||||
|
||||
Reference in New Issue
Block a user