mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-02 06:09:51 +00:00
ProtocolServer: Use unveil()
This commit is contained in:
parent
983e541584
commit
69c23aaedb
Notes:
sideshowbarker
2024-07-19 06:58:07 +09:00
Author: https://github.com/bugaevc
Commit: 69c23aaedb
Pull-request: https://github.com/SerenityOS/serenity/pull/2114
1 changed files with 9 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue