mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
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:
1 parent
854a84b08b
commit
110c3a1cba
2 files changed
+3
-3
No files matched your search
@@ -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"));
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user