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:
parent
dea65e33b4
commit
be303facb8
2 changed files with 3 additions and 3 deletions
|
@ -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"));
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue