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
commit 7899e14e72
Notes: sideshowbarker 2024-07-18 23:51:06 +09:00

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;