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/Applications/3DFileViewer/main.cpp | |
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/Applications/3DFileViewer/main.cpp')
-rw-r--r-- | Userland/Applications/3DFileViewer/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/3DFileViewer/main.cpp b/Userland/Applications/3DFileViewer/main.cpp index 1b77bd6107..b43cf9e413 100644 --- a/Userland/Applications/3DFileViewer/main.cpp +++ b/Userland/Applications/3DFileViewer/main.cpp @@ -358,7 +358,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) { auto app = TRY(GUI::Application::try_create(arguments)); - TRY(Core::System::pledge("stdio thread recvfd sendfd rpath unix prot_exec proc")); + TRY(Core::System::pledge("stdio thread recvfd sendfd rpath unix prot_exec")); TRY(Core::System::unveil("/tmp/session/%sid/portal/filesystemaccess", "rw")); TRY(Core::System::unveil("/home/anon/Documents/3D Models", "r")); |