diff options
author | Lucas CHOLLET <lucas.chollet@free.fr> | 2022-08-07 18:10:26 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-08-14 21:52:35 +0100 |
commit | c5b7c9f4799508ed6f940755243ab47dc55558ce (patch) | |
tree | 6cc3c84e33df8717e498bb07511bc3a558ed3143 /Userland/Games/Minesweeper | |
parent | f0012c21628c5aa58a0e806c2c7e5314420ee62e (diff) | |
download | serenity-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/Games/Minesweeper')
-rw-r--r-- | Userland/Games/Minesweeper/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Games/Minesweeper/main.cpp b/Userland/Games/Minesweeper/main.cpp index 91d5a5fd59..190f1d10f3 100644 --- a/Userland/Games/Minesweeper/main.cpp +++ b/Userland/Games/Minesweeper/main.cpp @@ -39,7 +39,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) TRY(Core::System::pledge("stdio rpath recvfd sendfd")); TRY(Core::System::unveil("/res", "r")); - TRY(Core::System::unveil("/tmp/100/portal/launch", "rw")); + TRY(Core::System::unveil("/tmp/user/100/portal/launch", "rw")); TRY(Core::System::unveil(nullptr, nullptr)); auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-minesweeper"sv)); |