mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:37:44 +00:00
SpiceAgent: Add unveil call on the /proc/all node path
This is needed later in the program when doing unveil on the path of "/tmp/session/%sid/portal/clipboard", because %sid is translated to the root session ID which therefore relies on access to the /proc/all node.
This commit is contained in:
parent
2a4f81fc83
commit
c58c938659
1 changed files with 1 additions and 0 deletions
|
@ -18,6 +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("/proc/all", "r"));
|
||||
TRY(Core::System::unveil("/tmp/session/%sid/portal/clipboard", "rw"));
|
||||
TRY(Core::System::unveil(nullptr, nullptr));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue