diff --git a/Servers/WindowServer/main.cpp b/Servers/WindowServer/main.cpp index 5c786d655d..d6aa05a635 100644 --- a/Servers/WindowServer/main.cpp +++ b/Servers/WindowServer/main.cpp @@ -10,6 +10,11 @@ int main(int, char**) { + if (pledge("stdio shared_buffer rpath wpath cpath unix proc fattr", nullptr) < 0) { + perror("pledge"); + return 1; + } + struct sigaction act; memset(&act, 0, sizeof(act)); act.sa_flags = SA_NOCLDWAIT; @@ -30,6 +35,11 @@ int main(int, char**) WSEventLoop loop; + if (pledge("stdio shared_buffer rpath wpath cpath unix proc", nullptr) < 0) { + perror("pledge"); + return 1; + } + WSScreen screen(wm_config->read_num_entry("Screen", "Width", 1024), wm_config->read_num_entry("Screen", "Height", 768)); WSCompositor::the();