mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 00:58:12 +00:00
Let sys$sigaction() fail if called with SIGKILL or SIGSTOP.
This commit is contained in:
parent
7bc41532be
commit
6a9fa3e41a
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
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 || signum == SIGKILL || signum == SIGSTOP)
|
||||||
if (signum < 1 || signum >= 32)
|
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
if (!validate_read_typed(act))
|
if (!validate_read_typed(act))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue