diff options
author | Timothy Flynn <trflynn89@pm.me> | 2022-10-03 09:32:18 -0400 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-10-03 17:09:21 +0100 |
commit | 25e0ab3ee48c046b4d994c1c95df36ca58a3ec78 (patch) | |
tree | 66155fffccb0e928109b079d897413fe2e7d45d5 /Userland/Games/Minesweeper | |
parent | 0455af4441d64ab0ec5e9f6cabaa94f5de8ac02e (diff) | |
download | serenity-25e0ab3ee48c046b4d994c1c95df36ca58a3ec78.zip |
Userland: Tighten promises by removing 'proc' where it isn't used
This is a partial revert of commit 7af5eef. After 97d15e9, the 'proc'
promise is not needed for operations using getsid().
This also fixes launching several applications in which 7af5eef added
the 'proc' promise only in the second call to pledge().
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 b08805ab65..aadc794aad 100644 --- a/Userland/Games/Minesweeper/main.cpp +++ b/Userland/Games/Minesweeper/main.cpp @@ -36,7 +36,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) TRY(Desktop::Launcher::add_allowed_handler_with_only_specific_urls("/bin/Help", { URL::create_with_file_scheme("/usr/share/man/man6/Minesweeper.md") })); TRY(Desktop::Launcher::seal_allowlist()); - TRY(Core::System::pledge("stdio rpath recvfd sendfd proc")); + TRY(Core::System::pledge("stdio rpath recvfd sendfd")); TRY(Core::System::unveil("/tmp/session/%sid/portal/launch", "rw")); TRY(Core::System::unveil("/res", "r")); |