mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Kernel: Make sys$anon_create() require the "stdio" promise if pledged
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user