diff options
-rw-r--r-- | Userland/Applications/NetworkSettings/main.cpp | 3 | ||||
-rw-r--r-- | Userland/Services/SpiceAgent/ConnectionToClipboardServer.h | 2 | ||||
-rw-r--r-- | Userland/Services/SpiceAgent/main.cpp | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/Userland/Applications/NetworkSettings/main.cpp b/Userland/Applications/NetworkSettings/main.cpp index b6fb09d721..f09c388b80 100644 --- a/Userland/Applications/NetworkSettings/main.cpp +++ b/Userland/Applications/NetworkSettings/main.cpp @@ -21,9 +21,10 @@ ErrorOr<int> serenity_main(Main::Arguments args) TRY(Core::System::unveil("/bin/NetworkServer", "x")); TRY(Core::System::unveil("/etc/Network.ini", "rwc")); + TRY(Core::System::unveil("/proc/all", "r")); TRY(Core::System::unveil("/proc/net/adapters", "r")); TRY(Core::System::unveil("/res", "r")); - TRY(Core::System::unveil("/tmp/portal/clipboard", "rw")); + TRY(Core::System::unveil("/tmp/session/%sid/portal/clipboard", "rw")); TRY(Core::System::unveil("/tmp/portal/window", "rw")); TRY(Core::System::unveil(nullptr, nullptr)); diff --git a/Userland/Services/SpiceAgent/ConnectionToClipboardServer.h b/Userland/Services/SpiceAgent/ConnectionToClipboardServer.h index d553ca7195..b10cc39b29 100644 --- a/Userland/Services/SpiceAgent/ConnectionToClipboardServer.h +++ b/Userland/Services/SpiceAgent/ConnectionToClipboardServer.h @@ -15,7 +15,7 @@ class ConnectionToClipboardServer final : public IPC::ConnectionToServer<ClipboardClientEndpoint, ClipboardServerEndpoint> , public ClipboardClientEndpoint { - IPC_CLIENT_CONNECTION(ConnectionToClipboardServer, "/tmp/portal/clipboard"sv) + IPC_CLIENT_CONNECTION(ConnectionToClipboardServer, "/tmp/session/%sid/portal/clipboard"sv) public: Function<void()> on_data_changed; diff --git a/Userland/Services/SpiceAgent/main.cpp b/Userland/Services/SpiceAgent/main.cpp index 3527bd495e..890cc1ef2e 100644 --- a/Userland/Services/SpiceAgent/main.cpp +++ b/Userland/Services/SpiceAgent/main.cpp @@ -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)); |