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

Kernel: Make sys$anon_create() require the "stdio" promise if pledged

This commit is contained in:
Andreas Kling 2021-01-15 16:42:09 +01:00
parent e87b8a79ed
commit 7899e14e72

View file

@ -33,6 +33,8 @@ namespace Kernel {
int Process::sys$anon_create(size_t size, int options)
{
REQUIRE_PROMISE(stdio);
if (size % PAGE_SIZE)
return -EINVAL;