summaryrefslogtreecommitdiff
path: root/Userland/Services
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2022-02-04 14:10:58 +0330
committerAndreas Kling <kling@serenityos.org>2022-02-06 13:10:10 +0100
commit63b4c35ec73af48ea0d8b53a00af5d74cceb1bee (patch)
treef75739d17f4cbe0b96759d33f2eb2e87509aa191 /Userland/Services
parent6f5ab302538f673b1274152cd8a36f4fe49e5f39 (diff)
downloadserenity-63b4c35ec73af48ea0d8b53a00af5d74cceb1bee.zip
WebSocket: Pledge rpath and unveil /etc/timezone
This is required for timezone stuff, otherwise we'd just crash.
Diffstat (limited to 'Userland/Services')
-rw-r--r--Userland/Services/WebSocket/main.cpp2
1 files changed, 1 insertions, 1 deletions
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<int> 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<WebSocket::ClientConnection>());