From 63b4c35ec73af48ea0d8b53a00af5d74cceb1bee Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Fri, 4 Feb 2022 14:10:58 +0330 Subject: [PATCH] WebSocket: Pledge rpath and unveil /etc/timezone This is required for timezone stuff, otherwise we'd just crash. --- Userland/Services/WebSocket/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Services/WebSocket/main.cpp b/Userland/Services/WebSocket/main.cpp index b457eddf06..60cc4ce3af 100644 --- a/Userland/Services/WebSocket/main.cpp +++ b/Userland/Services/WebSocket/main.cpp @@ -21,8 +21,8 @@ ErrorOr serenity_main(Main::Arguments) Core::EventLoop event_loop; // FIXME: Establish a connection to LookupServer and then drop "unix"? - TRY(Core::System::pledge("stdio inet unix sendfd recvfd")); TRY(Core::System::unveil("/tmp/portal/lookup", "rw")); + TRY(Core::System::unveil("/etc/timezone", "r")); TRY(Core::System::unveil(nullptr, nullptr)); auto client = TRY(IPC::take_over_accepted_client_from_system_server());