Ver Fonte

Applications: Use default execpromises parameter to `pledge(..)`

Brian Gianforcaro há 3 anos atrás
pai
commit
9cfd520bb8

+ 1 - 1
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");
 

+ 2 - 2
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));

+ 1 - 1
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;

+ 2 - 2
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));
 

+ 1 - 1
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);
 

+ 2 - 2
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));