mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 11:37:44 +00:00
Kernel: Make sys$anon_create() require the "stdio" promise if pledged
This commit is contained in:
parent
e87b8a79ed
commit
7899e14e72
1 changed files with 2 additions and 0 deletions
|
@ -33,6 +33,8 @@ namespace Kernel {
|
||||||
|
|
||||||
int Process::sys$anon_create(size_t size, int options)
|
int Process::sys$anon_create(size_t size, int options)
|
||||||
{
|
{
|
||||||
|
REQUIRE_PROMISE(stdio);
|
||||||
|
|
||||||
if (size % PAGE_SIZE)
|
if (size % PAGE_SIZE)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue