From 7899e14e723cd00d54bd08f4f27fe2ce8f9ccf4f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 15 Jan 2021 16:42:09 +0100 Subject: [PATCH] Kernel: Make sys$anon_create() require the "stdio" promise if pledged --- Kernel/Syscalls/anon_create.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Kernel/Syscalls/anon_create.cpp b/Kernel/Syscalls/anon_create.cpp index bc2fbd33c1..63192c70a1 100644 --- a/Kernel/Syscalls/anon_create.cpp +++ b/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;