Browse Source

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

Andreas Kling 4 years ago
parent
commit
7899e14e72
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Kernel/Syscalls/anon_create.cpp

+ 2 - 0
Kernel/Syscalls/anon_create.cpp

@@ -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;