mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
SpiceAgent: Pledge cpath
Without this the spice agent can't create files on drag/drop.
This commit is contained in:
parent
c0528d4188
commit
91e1a77854
Notes:
sideshowbarker
2024-07-17 08:42:05 +09:00
Author: https://github.com/MacDue Commit: https://github.com/SerenityOS/serenity/commit/91e1a77854 Pull-request: https://github.com/SerenityOS/serenity/pull/19884 Reviewed-by: https://github.com/caoimhebyrne ✅
@ -31,7 +31,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
TRY(Desktop::Launcher::add_allowed_url(URL::create_with_file_scheme(Core::StandardPaths::downloads_directory())));
|
||||
TRY(Desktop::Launcher::seal_allowlist());
|
||||
|
||||
TRY(Core::System::pledge("unix rpath wpath stdio sendfd recvfd"));
|
||||
TRY(Core::System::pledge("unix rpath wpath cpath stdio sendfd recvfd"));
|
||||
TRY(Core::System::unveil(SPICE_DEVICE, "rw"sv));
|
||||
TRY(Core::System::unveil(Core::StandardPaths::downloads_directory(), "rwc"sv));
|
||||
TRY(Core::System::unveil(nullptr, nullptr));
|
||||
|
Loading…
Reference in New Issue
Block a user