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 ✅
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue