mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 11:42:38 +03: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: https://github.com/SerenityOS/serenity/commit/e815bf5d1f8
@ -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…
Reference in New Issue
Block a user