From a008e2f63a5fc0cff98df7c5652b9f93a75512a9 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 17 Feb 2020 20:09:04 +0100 Subject: [PATCH] WindowServer: Drop the "exec" pledge promise entirely Now that the system menu is out-of-process, we no longer need to exec() from WindowServer, allowing us to drop this promise. Very cool! --- Servers/WindowServer/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Servers/WindowServer/main.cpp b/Servers/WindowServer/main.cpp index b3b1c4e0e4..6d81617260 100644 --- a/Servers/WindowServer/main.cpp +++ b/Servers/WindowServer/main.cpp @@ -38,7 +38,7 @@ int main(int, char**) { - if (pledge("stdio video thread shared_buffer accept rpath wpath cpath unix proc exec fattr", nullptr) < 0) { + if (pledge("stdio video thread shared_buffer accept rpath wpath cpath unix proc fattr", nullptr) < 0) { perror("pledge"); return 1; } @@ -88,7 +88,7 @@ int main(int, char**) WindowServer::EventLoop loop; - if (pledge("stdio video thread shared_buffer accept rpath wpath cpath proc exec", nullptr) < 0) { + if (pledge("stdio video thread shared_buffer accept rpath wpath cpath proc", nullptr) < 0) { perror("pledge"); return 1; }