diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2022-04-03 16:13:41 -0700 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-04-03 17:13:51 -0700 |
commit | 9cfd520bb85718edeafb48dd301e2a1f887661a8 (patch) | |
tree | 1c406bc2926f2c5d9f15e38f74c7d471cd2200aa /Userland | |
parent | 7c0495cbac7fe6bee0d3a93088ddcf56fad352ad (diff) | |
download | serenity-9cfd520bb85718edeafb48dd301e2a1f887661a8.zip |
Applications: Use default execpromises parameter to `pledge(..)`
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Applications/Assistant/main.cpp | 2 | ||||
-rw-r--r-- | Userland/Applications/Calendar/main.cpp | 4 | ||||
-rw-r--r-- | Userland/Applications/Debugger/main.cpp | 2 | ||||
-rw-r--r-- | Userland/Applications/Magnifier/main.cpp | 4 | ||||
-rw-r--r-- | Userland/Applications/Spreadsheet/main.cpp | 2 | ||||
-rw-r--r-- | Userland/Applications/ThemeEditor/main.cpp | 4 |
6 files changed, 9 insertions, 9 deletions
diff --git a/Userland/Applications/Assistant/main.cpp b/Userland/Applications/Assistant/main.cpp index fe59a0587c..0b3c149287 100644 --- a/Userland/Applications/Assistant/main.cpp +++ b/Userland/Applications/Assistant/main.cpp @@ -193,7 +193,7 @@ static constexpr size_t MAX_SEARCH_RESULTS = 6; ErrorOr<int> serenity_main(Main::Arguments arguments) { - TRY(Core::System::pledge("stdio recvfd sendfd rpath cpath unix proc exec thread", nullptr)); + TRY(Core::System::pledge("stdio recvfd sendfd rpath cpath unix proc exec thread")); Core::LockFile lockfile("/tmp/lock/assistant.lock"); diff --git a/Userland/Applications/Calendar/main.cpp b/Userland/Applications/Calendar/main.cpp index 57aceb613e..7845517f2f 100644 --- a/Userland/Applications/Calendar/main.cpp +++ b/Userland/Applications/Calendar/main.cpp @@ -22,11 +22,11 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) { - TRY(Core::System::pledge("stdio recvfd sendfd rpath unix", nullptr)); + TRY(Core::System::pledge("stdio recvfd sendfd rpath unix")); auto app = TRY(GUI::Application::try_create(arguments)); - TRY(Core::System::pledge("stdio recvfd sendfd rpath", nullptr)); + TRY(Core::System::pledge("stdio recvfd sendfd rpath")); TRY(Core::System::unveil("/etc/timezone", "r")); TRY(Core::System::unveil("/res", "r")); TRY(Core::System::unveil(nullptr, nullptr)); diff --git a/Userland/Applications/Debugger/main.cpp b/Userland/Applications/Debugger/main.cpp index 65e9bdeba3..faba3a3260 100644 --- a/Userland/Applications/Debugger/main.cpp +++ b/Userland/Applications/Debugger/main.cpp @@ -212,7 +212,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) { editor = Line::Editor::construct(); - TRY(Core::System::pledge("stdio proc ptrace exec rpath tty sigaction cpath unix", nullptr)); + TRY(Core::System::pledge("stdio proc ptrace exec rpath tty sigaction cpath unix")); char const* command = nullptr; Core::ArgsParser args_parser; diff --git a/Userland/Applications/Magnifier/main.cpp b/Userland/Applications/Magnifier/main.cpp index 5c1e9668fc..8cc721886a 100644 --- a/Userland/Applications/Magnifier/main.cpp +++ b/Userland/Applications/Magnifier/main.cpp @@ -17,10 +17,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) { - TRY(Core::System::pledge("stdio cpath rpath recvfd sendfd unix", nullptr)); + TRY(Core::System::pledge("stdio cpath rpath recvfd sendfd unix")); auto app = GUI::Application::construct(arguments); - TRY(Core::System::pledge("stdio cpath rpath recvfd sendfd", nullptr)); + TRY(Core::System::pledge("stdio cpath rpath recvfd sendfd")); TRY(Core::System::unveil("/res", "r")); TRY(Core::System::unveil(nullptr, nullptr)); diff --git a/Userland/Applications/Spreadsheet/main.cpp b/Userland/Applications/Spreadsheet/main.cpp index 210c7da977..657f6b25e3 100644 --- a/Userland/Applications/Spreadsheet/main.cpp +++ b/Userland/Applications/Spreadsheet/main.cpp @@ -26,7 +26,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) { - TRY(Core::System::pledge("stdio recvfd sendfd rpath fattr unix cpath wpath thread", nullptr)); + TRY(Core::System::pledge("stdio recvfd sendfd rpath fattr unix cpath wpath thread")); auto app = GUI::Application::construct(arguments); diff --git a/Userland/Applications/ThemeEditor/main.cpp b/Userland/Applications/ThemeEditor/main.cpp index 7fe1ef07ac..9149e5285b 100644 --- a/Userland/Applications/ThemeEditor/main.cpp +++ b/Userland/Applications/ThemeEditor/main.cpp @@ -159,7 +159,7 @@ public: ErrorOr<int> serenity_main(Main::Arguments arguments) { - TRY(Core::System::pledge("stdio recvfd sendfd thread rpath cpath wpath unix", nullptr)); + TRY(Core::System::pledge("stdio recvfd sendfd thread rpath cpath wpath unix")); auto app = GUI::Application::construct(arguments); @@ -182,7 +182,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) } } - TRY(Core::System::pledge("stdio recvfd sendfd thread rpath unix", nullptr)); + TRY(Core::System::pledge("stdio recvfd sendfd thread rpath unix")); TRY(Core::System::unveil("/tmp/portal/filesystemaccess", "rw")); TRY(Core::System::unveil("/res", "r")); TRY(Core::System::unveil(nullptr, nullptr)); |