summaryrefslogtreecommitdiff
path: root/Userland/Applications/Terminal
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/Applications/Terminal
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/Applications/Terminal')
-rw-r--r--Userland/Applications/Terminal/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/Terminal/main.cpp b/Userland/Applications/Terminal/main.cpp
index 404323b5cd..ac3d84e9e1 100644
--- a/Userland/Applications/Terminal/main.cpp
+++ b/Userland/Applications/Terminal/main.cpp
@@ -432,7 +432,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
TRY(Core::System::unveil("/bin/TerminalSettings", "x"));
TRY(Core::System::unveil("/bin/utmpupdate", "x"));
TRY(Core::System::unveil("/etc/FileIconProvider.ini", "r"));
- TRY(Core::System::unveil("/tmp/100/portal/launch", "rw"));
+ TRY(Core::System::unveil("/tmp/user/100/portal/launch", "rw"));
TRY(Core::System::unveil("/tmp/portal/config", "rw"));
TRY(Core::System::unveil(nullptr, nullptr));