summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibDesktop/Launcher.cpp
diff options
context:
space:
mode:
authorLucas CHOLLET <lucas.chollet@free.fr>2022-08-07 18:10:26 +0200
committerLinus Groh <mail@linusgroh.de>2022-08-14 21:52:35 +0100
commitc5b7c9f4799508ed6f940755243ab47dc55558ce (patch)
tree6cc3c84e33df8717e498bb07511bc3a558ed3143 /Userland/Libraries/LibDesktop/Launcher.cpp
parentf0012c21628c5aa58a0e806c2c7e5314420ee62e (diff)
downloadserenity-c5b7c9f4799508ed6f940755243ab47dc55558ce.zip
LibCore+LaunchServer: Move portal directory to `/tmp/user/%uid`
The `/tmp/user` directory is owned by root, this solution prevents malicious users to interfere with other users' portals. This commit also moves `launch`'s portal in the user directory.
Diffstat (limited to 'Userland/Libraries/LibDesktop/Launcher.cpp')
-rw-r--r--Userland/Libraries/LibDesktop/Launcher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibDesktop/Launcher.cpp b/Userland/Libraries/LibDesktop/Launcher.cpp
index 5169bc7257..6dc00d0a05 100644
--- a/Userland/Libraries/LibDesktop/Launcher.cpp
+++ b/Userland/Libraries/LibDesktop/Launcher.cpp
@@ -36,7 +36,7 @@ auto Launcher::Details::from_details_str(String const& details_str) -> NonnullRe
class ConnectionToLaunchServer final
: public IPC::ConnectionToServer<LaunchClientEndpoint, LaunchServerEndpoint>
, public LaunchClientEndpoint {
- IPC_CLIENT_CONNECTION(ConnectionToLaunchServer, "/tmp/100/portal/launch")
+ IPC_CLIENT_CONNECTION(ConnectionToLaunchServer, "/tmp/user/100/portal/launch")
private:
ConnectionToLaunchServer(NonnullOwnPtr<Core::Stream::LocalSocket> socket)
: IPC::ConnectionToServer<LaunchClientEndpoint, LaunchServerEndpoint>(*this, move(socket))