summaryrefslogtreecommitdiff
path: root/Userland/Demos
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2023-04-10 16:24:02 +0200
committerTim Flynn <trflynn89@pm.me>2023-04-11 06:38:18 -0400
commitbe303facb84bb417729914c6a9e6be36ef8ca84f (patch)
treef5279502f9668608edd90e2e339826f55b61e53e /Userland/Demos
parentdea65e33b456aa3841d64af7247d48ff9fd45340 (diff)
downloadserenity-be303facb84bb417729914c6a9e6be36ef8ca84f.zip
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.
Diffstat (limited to 'Userland/Demos')
-rw-r--r--Userland/Demos/Tubes/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Demos/Tubes/main.cpp b/Userland/Demos/Tubes/main.cpp
index b77862305f..d316b2d732 100644
--- a/Userland/Demos/Tubes/main.cpp
+++ b/Userland/Demos/Tubes/main.cpp
@@ -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();