mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 08:20:44 +00:00
Kernel: Make sys$anon_create() require the "stdio" promise if pledged
This commit is contained in:
parent
e87b8a79ed
commit
7899e14e72
Notes:
sideshowbarker
2024-07-18 23:51:06 +09:00
Author: https://github.com/awesomekling
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)
|
||||
{
|
||||
REQUIRE_PROMISE(stdio);
|
||||
|
||||
if (size % PAGE_SIZE)
|
||||
return -EINVAL;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue