From f187374c1bb9704f683f79cc21a388024d7521c4 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 11 Jan 2020 23:19:30 +0100 Subject: Kernel: fork()ed children should inherit pledge promises :^) Update various places that now need wider promises as they are not reset by fork() anymore. --- Servers/WindowServer/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Servers/WindowServer') diff --git a/Servers/WindowServer/main.cpp b/Servers/WindowServer/main.cpp index d6aa05a635..aeab64d1e7 100644 --- a/Servers/WindowServer/main.cpp +++ b/Servers/WindowServer/main.cpp @@ -10,7 +10,7 @@ int main(int, char**) { - if (pledge("stdio shared_buffer rpath wpath cpath unix proc fattr", nullptr) < 0) { + if (pledge("stdio shared_buffer rpath wpath cpath unix proc exec fattr", nullptr) < 0) { perror("pledge"); return 1; } @@ -35,7 +35,7 @@ int main(int, char**) WSEventLoop loop; - if (pledge("stdio shared_buffer rpath wpath cpath unix proc", nullptr) < 0) { + if (pledge("stdio shared_buffer rpath wpath cpath unix proc exec", nullptr) < 0) { perror("pledge"); return 1; } -- cgit v1.2.3