From 99e0b69c0cc86fec09811b2c801688c38786771a Mon Sep 17 00:00:00 2001 From: bugreport0 <32939607+bugreport0@users.noreply.github.com> Date: Sun, 12 Dec 2021 19:44:48 +0100 Subject: [PATCH] WindowServer: Tighten pledged promises --- Userland/Services/WindowServer/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Services/WindowServer/main.cpp b/Userland/Services/WindowServer/main.cpp index fa3dc03c1a..78ed275f29 100644 --- a/Userland/Services/WindowServer/main.cpp +++ b/Userland/Services/WindowServer/main.cpp @@ -31,6 +31,7 @@ ErrorOr serenity_main(Main::Arguments) act.sa_flags = SA_NOCLDWAIT; act.sa_handler = SIG_IGN; TRY(Core::System::sigaction(SIGCHLD, &act, nullptr)); + TRY(Core::System::pledge("stdio video thread sendfd recvfd accept rpath wpath cpath unix proc")); auto wm_config = Core::ConfigFile::open("/etc/WindowServer.ini"); auto theme_name = wm_config->read_entry("Theme", "Name", "Default");