From 91e1a7785472631a477e249fd2dbb64c077ad88b Mon Sep 17 00:00:00 2001 From: MacDue Date: Sat, 8 Jul 2023 15:18:28 +0100 Subject: [PATCH] SpiceAgent: Pledge cpath Without this the spice agent can't create files on drag/drop. --- Userland/Services/SpiceAgent/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Services/SpiceAgent/main.cpp b/Userland/Services/SpiceAgent/main.cpp index a8520ef2b2..e897172fbf 100644 --- a/Userland/Services/SpiceAgent/main.cpp +++ b/Userland/Services/SpiceAgent/main.cpp @@ -31,7 +31,7 @@ ErrorOr 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));