mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:27:35 +00:00
PDFViewer: Add a basic set of pledges
This commit is contained in:
parent
50e090071c
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->set_title("PDF Viewer");
|
||||||
window->resize(640, 400);
|
window->resize(640, 400);
|
||||||
|
|
||||||
|
TRY(Core::System::pledge("stdio recvfd sendfd rpath unix"));
|
||||||
|
|
||||||
TRY(Core::System::unveil("/res", "r"));
|
TRY(Core::System::unveil("/res", "r"));
|
||||||
TRY(Core::System::unveil("/tmp/portal/filesystemaccess", "rw"));
|
TRY(Core::System::unveil("/tmp/portal/filesystemaccess", "rw"));
|
||||||
TRY(Core::System::unveil(nullptr, nullptr));
|
TRY(Core::System::unveil(nullptr, nullptr));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue