Pārlūkot izejas kodu

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

Andreas Kling 4 gadi atpakaļ
vecāks
revīzija
7899e14e72
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  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;