diff options
author | Andreas Kling <kling@serenityos.org> | 2021-12-25 10:58:30 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-12-25 10:58:30 +0100 |
commit | e815bf5d1f85fa91679bbd54b7d018a16359e6ca (patch) | |
tree | 23e43f9e3754944283b648f2c2e8befa9f92ba2d /Userland/Applications/PDFViewer | |
parent | 50e090071cba2231c3c5201d45fdeeae8659fb64 (diff) | |
download | serenity-e815bf5d1f85fa91679bbd54b7d018a16359e6ca.zip |
PDFViewer: Add a basic set of pledges
Diffstat (limited to 'Userland/Applications/PDFViewer')
-rw-r--r-- | Userland/Applications/PDFViewer/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Applications/PDFViewer/main.cpp b/Userland/Applications/PDFViewer/main.cpp index 89854efc26..44bdafbc3a 100644 --- a/Userland/Applications/PDFViewer/main.cpp +++ b/Userland/Applications/PDFViewer/main.cpp @@ -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)); |