summaryrefslogtreecommitdiff
path: root/Userland/Services/WindowServer/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Services/WindowServer/main.cpp')
-rw-r--r--Userland/Services/WindowServer/main.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/Userland/Services/WindowServer/main.cpp b/Userland/Services/WindowServer/main.cpp
index 60fcac658a..9697fda608 100644
--- a/Userland/Services/WindowServer/main.cpp
+++ b/Userland/Services/WindowServer/main.cpp
@@ -21,17 +21,19 @@
ErrorOr<int> serenity_main(Main::Arguments)
{
- TRY(Core::System::pledge("stdio video thread sendfd recvfd accept rpath wpath cpath unix proc sigaction"));
+ TRY(Core::System::pledge("stdio video thread sendfd recvfd accept rpath wpath cpath unix proc sigaction exec"));
TRY(Core::System::unveil("/res", "r"));
TRY(Core::System::unveil("/tmp", "cw"));
TRY(Core::System::unveil("/etc/WindowServer.ini", "rwc"));
TRY(Core::System::unveil("/dev", "rw"));
+ TRY(Core::System::unveil("/bin/keymap", "x"));
+ TRY(Core::System::unveil("/proc/keymap", "r"));
struct sigaction act = {};
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"));
+ TRY(Core::System::pledge("stdio video thread sendfd recvfd accept rpath wpath cpath unix proc exec"));
auto wm_config = Core::ConfigFile::open("/etc/WindowServer.ini");
auto theme_name = wm_config->read_entry("Theme", "Name", "Default");
@@ -49,7 +51,7 @@ ErrorOr<int> serenity_main(Main::Arguments)
WindowServer::EventLoop loop;
- TRY(Core::System::pledge("stdio video thread sendfd recvfd accept rpath wpath cpath proc"));
+ TRY(Core::System::pledge("stdio video thread sendfd recvfd accept rpath wpath cpath proc exec"));
// First check which screens are explicitly configured
{