mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-05 08:06:09 +00:00
ProtocolServer: Use unveil()
This commit is contained in:
committed by
Andreas Kling
parent
983e541584
commit
69c23aaedb
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user