1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:14:58 +00:00

3DFileViewer+Tubes: Add map_fixed to pledges

Both applications eventually reach LibGPU's loading of a dynamic library
(e.g. LibSoftGPU) which requires this pledge.

The pledge was always required, but went unchecked until 01318d8f9b.
This commit is contained in:
Jelle Raaijmakers 2023-04-10 16:24:02 +02:00 committed by Tim Flynn
parent dea65e33b4
commit be303facb8
2 changed files with 3 additions and 3 deletions

View file

@ -350,7 +350,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
{
auto app = TRY(GUI::Application::try_create(arguments));
TRY(Core::System::pledge("stdio thread recvfd sendfd rpath unix prot_exec"));
TRY(Core::System::pledge("stdio thread recvfd sendfd rpath unix prot_exec map_fixed"));
TRY(Core::System::unveil("/tmp/session/%sid/portal/filesystemaccess", "rw"));
TRY(Core::System::unveil("/res", "r"));

View file

@ -14,7 +14,7 @@
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
TRY(Core::System::pledge("stdio recvfd sendfd rpath unix prot_exec"));
TRY(Core::System::pledge("stdio recvfd sendfd rpath unix prot_exec map_fixed"));
unsigned refresh_rate = 12;
@ -25,7 +25,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto app = TRY(GUI::Application::try_create(arguments));
TRY(Core::System::pledge("stdio recvfd sendfd rpath prot_exec"));
TRY(Core::System::pledge("stdio recvfd sendfd rpath prot_exec map_fixed"));
auto window = TRY(Desktop::Screensaver::create_window("Tubes"sv, "app-tubes"sv));
window->update();