mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
PDFViewer: Add a basic set of pledges
This commit is contained in:
parent
50e090071c
commit
e815bf5d1f
Notes:
sideshowbarker
2024-07-17 22:11:49 +09:00
Author: https://github.com/awesomekling
Commit: e815bf5d1f
1 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
window->set_title("PDF Viewer");
|
||||
window->resize(640, 400);
|
||||
|
||||
TRY(Core::System::pledge("stdio recvfd sendfd rpath unix"));
|
||||
|
||||
TRY(Core::System::unveil("/res", "r"));
|
||||
TRY(Core::System::unveil("/tmp/portal/filesystemaccess", "rw"));
|
||||
TRY(Core::System::unveil(nullptr, nullptr));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue