Userland: Pledge "wpath" in applications using LibGL

The "wpath" pledge is required for the V3D LibGL driver to make writable
memory mappings.
This commit is contained in:
Sönke Holz authored and Sönke Holz committed 2026-10-08 16:07:29 +02:00
1 parent 854a84b08b
commit 110c3a1cba
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -352,7 +352,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
if (filename.is_empty())
filename = "/home/anon/Documents/3D Models/teapot.obj"sv;
TRY(Core::System::pledge("stdio thread recvfd sendfd rpath unix prot_exec map_fixed"));
TRY(Core::System::pledge("stdio thread recvfd sendfd rpath wpath unix prot_exec map_fixed"));
TRY(Core::System::unveil("/tmp/session/%sid/portal/filesystemaccess", "rw"));
TRY(Core::System::unveil("/res", "r"));
+2 -2
View File
@@ -13,7 +13,7 @@
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
TRY(Core::System::pledge("stdio recvfd sendfd rpath unix prot_exec map_fixed"));
TRY(Core::System::pledge("stdio recvfd sendfd rpath wpath unix prot_exec map_fixed"));
unsigned refresh_rate = 12;
@@ -24,7 +24,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto app = TRY(GUI::Application::create(arguments));
TRY(Core::System::pledge("stdio recvfd sendfd rpath prot_exec map_fixed"));
TRY(Core::System::pledge("stdio recvfd sendfd rpath wpath prot_exec map_fixed"));
auto window = TRY(Desktop::Screensaver::create_window("Tubes"sv, "app-tubes"sv));
window->update();