summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Servers/ProtocolServer/main.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Servers/ProtocolServer/main.cpp b/Servers/ProtocolServer/main.cpp
index 100fe42cd2..9a3da67b78 100644
--- a/Servers/ProtocolServer/main.cpp
+++ b/Servers/ProtocolServer/main.cpp
@@ -43,6 +43,15 @@ int main(int, char**)
perror("pledge");
return 1;
}
+ if (unveil("/tmp/portal/lookup", "rw") < 0) {
+ perror("unveil");
+ return 1;
+ }
+ if (unveil(nullptr, nullptr) < 0) {
+ perror("unveil");
+ return 1;
+ }
+
(void)*new HttpProtocol;
(void)*new HttpsProtocol;
auto server = Core::LocalServer::construct();