NetworkSettings+SpiceAgent: Update and add required unveil paths

This commit is contained in:
ne0ndrag0n 2022-10-14 21:05:48 -04:00 committed by Brian Gianforcaro
commit 323c403d43
Notes: sideshowbarker 2024-07-17 07:19:27 +09:00
3 changed files with 4 additions and 3 deletions

View file

@ -18,7 +18,7 @@ ErrorOr<int> serenity_main(Main::Arguments)
TRY(Core::System::pledge("unix rpath wpath stdio sendfd recvfd"));
TRY(Core::System::unveil(SPICE_DEVICE, "rw"sv));
TRY(Core::System::unveil("/tmp/portal/clipboard", "rw"));
TRY(Core::System::unveil("/tmp/session/%sid/portal/clipboard", "rw"));
TRY(Core::System::unveil(nullptr, nullptr));
int serial_port_fd = TRY(Core::System::open(SPICE_DEVICE, O_RDWR));