1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:37:34 +00:00

Applications: Use default execpromises parameter to pledge(..)

This commit is contained in:
Brian Gianforcaro 2022-04-03 16:13:41 -07:00 committed by Brian Gianforcaro
parent 7c0495cbac
commit 9cfd520bb8
6 changed files with 9 additions and 9 deletions

View file

@ -159,7 +159,7 @@ public:
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
TRY(Core::System::pledge("stdio recvfd sendfd thread rpath cpath wpath unix", nullptr));
TRY(Core::System::pledge("stdio recvfd sendfd thread rpath cpath wpath unix"));
auto app = GUI::Application::construct(arguments);
@ -182,7 +182,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
}
}
TRY(Core::System::pledge("stdio recvfd sendfd thread rpath unix", nullptr));
TRY(Core::System::pledge("stdio recvfd sendfd thread rpath unix"));
TRY(Core::System::unveil("/tmp/portal/filesystemaccess", "rw"));
TRY(Core::System::unveil("/res", "r"));
TRY(Core::System::unveil(nullptr, nullptr));