From d312011708e30049890639c25b42650b5d62f950 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 16 Jan 2021 17:42:31 +0100 Subject: [PATCH] Everywhere: Drop "shared_buffer" in most GUI programs, pledge "recvfd" Now that WindowServer broadcasts the system theme using an anonymous file, we need clients to pledge "recvfd" so they can receive it. Some programs keep the "shared_buffer" pledge since it's still used for a handful of things. --- Userland/Applications/About/main.cpp | 4 ++-- Userland/Applications/Browser/main.cpp | 4 ++-- Userland/Applications/Calculator/main.cpp | 4 ++-- Userland/Applications/Calendar/main.cpp | 4 ++-- Userland/Applications/CrashReporter/main.cpp | 4 ++-- Userland/Applications/DisplaySettings/main.cpp | 4 ++-- Userland/Applications/FileManager/main.cpp | 4 ++-- Userland/Applications/FontEditor/main.cpp | 6 +++--- Userland/Applications/Help/main.cpp | 4 ++-- Userland/Applications/HexEditor/main.cpp | 4 ++-- Userland/Applications/IRCClient/main.cpp | 4 ++-- Userland/Applications/KeyboardMapper/main.cpp | 4 ++-- Userland/Applications/KeyboardSettings/main.cpp | 4 ++-- Userland/Applications/MouseSettings/main.cpp | 4 ++-- Userland/Applications/Piano/main.cpp | 4 ++-- Userland/Applications/PixelPaint/main.cpp | 4 ++-- Userland/Applications/QuickShow/main.cpp | 4 ++-- Userland/Applications/Run/main.cpp | 4 ++-- Userland/Applications/SoundPlayer/main.cpp | 6 +++--- Userland/Applications/Spreadsheet/main.cpp | 4 ++-- Userland/Applications/SystemMonitor/main.cpp | 4 ++-- Userland/Applications/Terminal/main.cpp | 4 ++-- Userland/Applications/TextEditor/main.cpp | 4 ++-- Userland/Applications/ThemeEditor/main.cpp | 4 ++-- Userland/Applications/Welcome/main.cpp | 4 ++-- Userland/Demos/CatDog/main.cpp | 4 ++-- Userland/Demos/Cube/Cube.cpp | 2 +- Userland/Demos/Eyes/main.cpp | 4 ++-- Userland/Demos/Fire/Fire.cpp | 2 +- Userland/Demos/LibGfxDemo/main.cpp | 2 +- Userland/Demos/LibGfxScaleDemo/main.cpp | 2 +- Userland/Demos/Mouse/main.cpp | 2 +- Userland/Demos/Screensaver/Screensaver.cpp | 4 ++-- Userland/Demos/WidgetGallery/main.cpp | 2 +- Userland/DevTools/HackStudio/main.cpp | 4 ++-- Userland/DevTools/IPCCompiler/main.cpp | 1 + Userland/DevTools/Inspector/main.cpp | 4 ++-- Userland/DevTools/Playground/main.cpp | 6 +++--- Userland/Games/2048/main.cpp | 4 ++-- Userland/Games/Breakout/main.cpp | 4 ++-- Userland/Games/Chess/main.cpp | 2 +- Userland/Games/Conway/main.cpp | 4 ++-- Userland/Games/Minesweeper/main.cpp | 4 ++-- Userland/Games/Pong/main.cpp | 4 ++-- Userland/Games/Snake/main.cpp | 4 ++-- Userland/Games/Solitaire/main.cpp | 2 +- Userland/MenuApplets/Audio/main.cpp | 6 +++--- Userland/MenuApplets/ClipboardHistory/main.cpp | 4 ++-- Userland/MenuApplets/Clock/main.cpp | 4 ++-- Userland/MenuApplets/Network/main.cpp | 4 ++-- Userland/MenuApplets/ResourceGraph/main.cpp | 4 ++-- Userland/MenuApplets/UserName/main.cpp | 4 ++-- Userland/Services/ChessEngine/main.cpp | 4 ++-- Userland/Services/Clipboard/main.cpp | 6 +++--- Userland/Services/ImageDecoder/main.cpp | 4 ++-- Userland/Services/NotificationServer/main.cpp | 4 ++-- Userland/Services/SystemMenu/main.cpp | 2 +- Userland/Services/Taskbar/main.cpp | 4 ++-- Userland/Services/WebContent/main.cpp | 2 +- 59 files changed, 112 insertions(+), 111 deletions(-) diff --git a/Userland/Applications/About/main.cpp b/Userland/Applications/About/main.cpp index ffe15a2eaa4..8b03c00f42d 100644 --- a/Userland/Applications/About/main.cpp +++ b/Userland/Applications/About/main.cpp @@ -33,14 +33,14 @@ int main(int argc, char** argv) { - if (pledge("stdio sendfd shared_buffer accept rpath unix cpath fattr", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath unix cpath fattr", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio sendfd shared_buffer accept rpath", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Applications/Browser/main.cpp b/Userland/Applications/Browser/main.cpp index 979bcec35bb..52fa116bcc2 100644 --- a/Userland/Applications/Browser/main.cpp +++ b/Userland/Applications/Browser/main.cpp @@ -70,7 +70,7 @@ int main(int argc, char** argv) return 1; } - if (pledge("stdio sendfd shared_buffer accept unix cpath rpath wpath fattr sendfd recvfd", nullptr) < 0) { + if (pledge("stdio shared_buffer recvfd sendfd accept unix cpath rpath wpath fattr", nullptr) < 0) { perror("pledge"); return 1; } @@ -96,7 +96,7 @@ int main(int argc, char** argv) return 1; } - if (pledge("stdio sendfd shared_buffer accept unix cpath rpath wpath sendfd recvfd", nullptr) < 0) { + if (pledge("stdio shared_buffer recvfd sendfd accept unix cpath rpath wpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Applications/Calculator/main.cpp b/Userland/Applications/Calculator/main.cpp index c460bb4cbc9..82f8a1b28d9 100644 --- a/Userland/Applications/Calculator/main.cpp +++ b/Userland/Applications/Calculator/main.cpp @@ -36,14 +36,14 @@ int main(int argc, char** argv) { - if (pledge("stdio sendfd shared_buffer rpath accept unix cpath fattr", nullptr) < 0) { + if (pledge("stdio recvfd sendfd rpath accept unix cpath fattr", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio sendfd shared_buffer rpath accept", nullptr) < 0) { + if (pledge("stdio recvfd sendfd rpath accept", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Applications/Calendar/main.cpp b/Userland/Applications/Calendar/main.cpp index ab6697778c6..01df51f1444 100644 --- a/Userland/Applications/Calendar/main.cpp +++ b/Userland/Applications/Calendar/main.cpp @@ -45,14 +45,14 @@ int main(int argc, char** argv) { - if (pledge("stdio sendfd shared_buffer rpath accept unix cpath fattr", nullptr) < 0) { + if (pledge("stdio recvfd sendfd rpath accept unix cpath fattr", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio sendfd shared_buffer rpath accept", nullptr) < 0) { + if (pledge("stdio recvfd sendfd rpath accept", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Applications/CrashReporter/main.cpp b/Userland/Applications/CrashReporter/main.cpp index abafa720502..289dbfe3632 100644 --- a/Userland/Applications/CrashReporter/main.cpp +++ b/Userland/Applications/CrashReporter/main.cpp @@ -108,7 +108,7 @@ static TitleAndText build_cpu_registers(const ELF::Core::ThreadInfo& thread_info int main(int argc, char** argv) { - if (pledge("stdio sendfd shared_buffer accept cpath rpath unix fattr", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept cpath rpath unix fattr", nullptr) < 0) { perror("pledge"); return 1; } @@ -153,7 +153,7 @@ int main(int argc, char** argv) auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio sendfd shared_buffer accept rpath unix", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath unix", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Applications/DisplaySettings/main.cpp b/Userland/Applications/DisplaySettings/main.cpp index 924029c33c4..6363f03ffbe 100644 --- a/Userland/Applications/DisplaySettings/main.cpp +++ b/Userland/Applications/DisplaySettings/main.cpp @@ -39,14 +39,14 @@ int main(int argc, char** argv) { - if (pledge("stdio thread sendfd shared_buffer rpath accept cpath wpath unix fattr", nullptr) < 0) { + if (pledge("stdio thread recvfd sendfd rpath accept cpath wpath unix fattr", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio thread sendfd shared_buffer rpath accept cpath wpath", nullptr) < 0) { + if (pledge("stdio thread recvfd sendfd rpath accept cpath wpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Applications/FileManager/main.cpp b/Userland/Applications/FileManager/main.cpp index 622ada2d080..703d93c91f8 100644 --- a/Userland/Applications/FileManager/main.cpp +++ b/Userland/Applications/FileManager/main.cpp @@ -80,7 +80,7 @@ static void show_properties(const String& container_dir_path, const String& path int main(int argc, char** argv) { - if (pledge("stdio thread sendfd shared_buffer accept unix cpath rpath wpath fattr proc exec sigaction", nullptr) < 0) { + if (pledge("stdio thread recvfd sendfd accept unix cpath rpath wpath fattr proc exec sigaction", nullptr) < 0) { perror("pledge"); return 1; } @@ -99,7 +99,7 @@ int main(int argc, char** argv) auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio thread sendfd shared_buffer accept cpath rpath wpath fattr proc exec unix", nullptr) < 0) { + if (pledge("stdio thread recvfd sendfd accept cpath rpath wpath fattr proc exec unix", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Applications/FontEditor/main.cpp b/Userland/Applications/FontEditor/main.cpp index 31e04508140..94b1c0ce1d7 100644 --- a/Userland/Applications/FontEditor/main.cpp +++ b/Userland/Applications/FontEditor/main.cpp @@ -44,14 +44,14 @@ int main(int argc, char** argv) { - if (pledge("stdio sendfd shared_buffer thread rpath accept unix cpath wpath fattr unix", nullptr) < 0) { + if (pledge("stdio recvfd sendfd thread rpath accept unix cpath wpath fattr unix", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio sendfd shared_buffer thread rpath accept cpath wpath unix", nullptr) < 0) { + if (pledge("stdio recvfd sendfd thread rpath accept cpath wpath unix", nullptr) < 0) { perror("pledge"); return 1; } @@ -64,7 +64,7 @@ int main(int argc, char** argv) return 1; } - if (pledge("stdio sendfd shared_buffer thread rpath accept cpath wpath", nullptr) < 0) { + if (pledge("stdio recvfd sendfd thread rpath accept cpath wpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Applications/Help/main.cpp b/Userland/Applications/Help/main.cpp index 8179099fa7b..cd84af840b7 100644 --- a/Userland/Applications/Help/main.cpp +++ b/Userland/Applications/Help/main.cpp @@ -53,14 +53,14 @@ int main(int argc, char* argv[]) { - if (pledge("stdio sendfd shared_buffer accept rpath unix cpath fattr", nullptr) < 0) { + if (pledge("stdio shared_buffer recvfd sendfd accept rpath unix cpath fattr", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio sendfd shared_buffer accept rpath unix", nullptr) < 0) { + if (pledge("stdio shared_buffer recvfd sendfd accept rpath unix", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Applications/HexEditor/main.cpp b/Userland/Applications/HexEditor/main.cpp index f9cabc4dc35..dc5efa49adf 100644 --- a/Userland/Applications/HexEditor/main.cpp +++ b/Userland/Applications/HexEditor/main.cpp @@ -31,14 +31,14 @@ int main(int argc, char** argv) { - if (pledge("stdio sendfd shared_buffer accept rpath unix cpath wpath fattr thread", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath unix cpath wpath fattr thread", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio sendfd shared_buffer accept rpath cpath wpath thread", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath cpath wpath thread", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Applications/IRCClient/main.cpp b/Userland/Applications/IRCClient/main.cpp index fc264e49434..2458bac0ca7 100644 --- a/Userland/Applications/IRCClient/main.cpp +++ b/Userland/Applications/IRCClient/main.cpp @@ -33,7 +33,7 @@ int main(int argc, char** argv) { - if (pledge("stdio inet dns unix sendfd shared_buffer cpath rpath fattr wpath cpath", nullptr) < 0) { + if (pledge("stdio inet dns unix recvfd sendfd cpath rpath fattr wpath cpath", nullptr) < 0) { perror("pledge"); return 1; } @@ -45,7 +45,7 @@ int main(int argc, char** argv) auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio inet dns unix sendfd shared_buffer rpath wpath cpath", nullptr) < 0) { + if (pledge("stdio inet dns unix recvfd sendfd rpath wpath cpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Applications/KeyboardMapper/main.cpp b/Userland/Applications/KeyboardMapper/main.cpp index 9905fed8363..db5afa4a997 100644 --- a/Userland/Applications/KeyboardMapper/main.cpp +++ b/Userland/Applications/KeyboardMapper/main.cpp @@ -40,14 +40,14 @@ int main(int argc, char** argv) args_parser.add_positional_argument(path, "Keyboard character mapping file.", "file", Core::ArgsParser::Required::No); args_parser.parse(argc, argv); - if (pledge("stdio thread rpath accept cpath wpath sendfd shared_buffer unix fattr", nullptr) < 0) { + if (pledge("stdio thread rpath accept cpath wpath recvfd sendfd unix fattr", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio thread rpath accept cpath wpath sendfd shared_buffer", nullptr) < 0) { + if (pledge("stdio thread rpath accept cpath wpath recvfd sendfd", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Applications/KeyboardSettings/main.cpp b/Userland/Applications/KeyboardSettings/main.cpp index 2d23c2c0169..fd372cf4335 100644 --- a/Userland/Applications/KeyboardSettings/main.cpp +++ b/Userland/Applications/KeyboardSettings/main.cpp @@ -45,7 +45,7 @@ int main(int argc, char** argv) { - if (pledge("stdio rpath accept cpath wpath sendfd shared_buffer unix fattr proc exec", nullptr) < 0) { + if (pledge("stdio rpath accept cpath wpath recvfd sendfd unix fattr proc exec", nullptr) < 0) { perror("pledge"); return 1; } @@ -53,7 +53,7 @@ int main(int argc, char** argv) // If there is no command line parameter go for GUI. auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio rpath accept sendfd shared_buffer proc exec", nullptr) < 0) { + if (pledge("stdio rpath accept recvfd sendfd proc exec", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Applications/MouseSettings/main.cpp b/Userland/Applications/MouseSettings/main.cpp index 27de3ff6d96..d9c026a1a8a 100644 --- a/Userland/Applications/MouseSettings/main.cpp +++ b/Userland/Applications/MouseSettings/main.cpp @@ -42,14 +42,14 @@ int main(int argc, char** argv) { - if (pledge("stdio cpath rpath sendfd shared_buffer unix fattr", nullptr) < 0) { + if (pledge("stdio cpath rpath recvfd sendfd unix fattr", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio cpath rpath sendfd shared_buffer", nullptr) < 0) { + if (pledge("stdio cpath rpath recvfd sendfd", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Applications/Piano/main.cpp b/Userland/Applications/Piano/main.cpp index ac9cb19857c..cceaf720eae 100644 --- a/Userland/Applications/Piano/main.cpp +++ b/Userland/Applications/Piano/main.cpp @@ -44,14 +44,14 @@ int main(int argc, char** argv) { - if (pledge("stdio thread rpath accept cpath wpath sendfd shared_buffer unix fattr", nullptr) < 0) { + if (pledge("stdio thread rpath accept cpath wpath recvfd sendfd unix fattr", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio thread rpath accept cpath wpath sendfd shared_buffer unix", nullptr) < 0) { + if (pledge("stdio thread rpath accept cpath wpath recvfd sendfd unix", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Applications/PixelPaint/main.cpp b/Userland/Applications/PixelPaint/main.cpp index 3557187b84b..df581829e66 100644 --- a/Userland/Applications/PixelPaint/main.cpp +++ b/Userland/Applications/PixelPaint/main.cpp @@ -53,14 +53,14 @@ int main(int argc, char** argv) { - if (pledge("stdio thread sendfd shared_buffer accept rpath unix wpath cpath fattr", nullptr) < 0) { + if (pledge("stdio thread recvfd sendfd accept rpath unix wpath cpath fattr", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio thread sendfd shared_buffer accept rpath wpath cpath", nullptr) < 0) { + if (pledge("stdio thread recvfd sendfd accept rpath wpath cpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Applications/QuickShow/main.cpp b/Userland/Applications/QuickShow/main.cpp index 1bb770c40b3..6ed4df5585b 100644 --- a/Userland/Applications/QuickShow/main.cpp +++ b/Userland/Applications/QuickShow/main.cpp @@ -51,14 +51,14 @@ int main(int argc, char** argv) { - if (pledge("stdio sendfd shared_buffer accept cpath rpath wpath unix cpath fattr proc exec thread", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept cpath rpath wpath unix cpath fattr proc exec thread", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio sendfd shared_buffer accept cpath rpath wpath proc exec thread", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept cpath rpath wpath proc exec thread", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Applications/Run/main.cpp b/Userland/Applications/Run/main.cpp index a91608d7461..9bf27a3535c 100644 --- a/Userland/Applications/Run/main.cpp +++ b/Userland/Applications/Run/main.cpp @@ -34,14 +34,14 @@ int main(int argc, char** argv) { - if (pledge("stdio sendfd shared_buffer accept cpath rpath unix fattr proc exec", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept cpath rpath unix fattr proc exec", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio sendfd shared_buffer accept rpath unix proc exec", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath unix proc exec", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Applications/SoundPlayer/main.cpp b/Userland/Applications/SoundPlayer/main.cpp index 675568ee324..45752c089b6 100644 --- a/Userland/Applications/SoundPlayer/main.cpp +++ b/Userland/Applications/SoundPlayer/main.cpp @@ -37,14 +37,14 @@ int main(int argc, char** argv) { - if (pledge("stdio sendfd shared_buffer accept rpath thread unix cpath fattr", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath thread unix cpath fattr", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio sendfd shared_buffer accept rpath thread unix", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath thread unix", nullptr) < 0) { perror("pledge"); return 1; } @@ -52,7 +52,7 @@ int main(int argc, char** argv) auto audio_client = Audio::ClientConnection::construct(); audio_client->handshake(); - if (pledge("stdio sendfd shared_buffer accept rpath thread", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath thread", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Applications/Spreadsheet/main.cpp b/Userland/Applications/Spreadsheet/main.cpp index 46582e1f92e..d77b48c68c2 100644 --- a/Userland/Applications/Spreadsheet/main.cpp +++ b/Userland/Applications/Spreadsheet/main.cpp @@ -41,14 +41,14 @@ int main(int argc, char* argv[]) { - if (pledge("stdio sendfd shared_buffer accept rpath unix cpath wpath fattr thread", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath unix cpath wpath fattr thread", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio thread rpath accept cpath wpath sendfd shared_buffer unix", nullptr) < 0) { + if (pledge("stdio recvfd sendfd thread rpath accept cpath wpath unix", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Applications/SystemMonitor/main.cpp b/Userland/Applications/SystemMonitor/main.cpp index 0296aaca631..ce9b2488dfd 100644 --- a/Userland/Applications/SystemMonitor/main.cpp +++ b/Userland/Applications/SystemMonitor/main.cpp @@ -105,14 +105,14 @@ static bool can_access_pid(pid_t pid) int main(int argc, char** argv) { - if (pledge("stdio proc sendfd shared_buffer accept rpath exec unix cpath fattr", nullptr) < 0) { + if (pledge("stdio proc recvfd sendfd accept rpath exec unix cpath fattr", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio proc sendfd shared_buffer accept rpath exec", nullptr) < 0) { + if (pledge("stdio proc recvfd sendfd accept rpath exec", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Applications/Terminal/main.cpp b/Userland/Applications/Terminal/main.cpp index 690c4897e3d..85e8d9671b7 100644 --- a/Userland/Applications/Terminal/main.cpp +++ b/Userland/Applications/Terminal/main.cpp @@ -303,7 +303,7 @@ static RefPtr create_find_window(TerminalWidget& terminal) int main(int argc, char** argv) { - if (pledge("stdio tty rpath accept cpath wpath sendfd shared_buffer proc exec unix fattr sigaction", nullptr) < 0) { + if (pledge("stdio tty rpath accept cpath wpath recvfd sendfd proc exec unix fattr sigaction", nullptr) < 0) { perror("pledge"); return 1; } @@ -320,7 +320,7 @@ int main(int argc, char** argv) auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio tty rpath accept cpath wpath sendfd shared_buffer proc exec unix", nullptr) < 0) { + if (pledge("stdio tty rpath accept cpath wpath recvfd sendfd proc exec unix", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Applications/TextEditor/main.cpp b/Userland/Applications/TextEditor/main.cpp index 7da7fe84e9f..dafc4847a59 100644 --- a/Userland/Applications/TextEditor/main.cpp +++ b/Userland/Applications/TextEditor/main.cpp @@ -31,14 +31,14 @@ int main(int argc, char** argv) { - if (pledge("stdio thread rpath accept cpath wpath sendfd shared_buffer unix fattr", nullptr) < 0) { + if (pledge("stdio shared_buffer recvfd sendfd thread rpath accept cpath wpath unix fattr", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio thread rpath accept cpath wpath sendfd shared_buffer unix", nullptr) < 0) { + if (pledge("stdio shared_buffer recvfd sendfd thread rpath accept cpath wpath unix", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Applications/ThemeEditor/main.cpp b/Userland/Applications/ThemeEditor/main.cpp index cc9663501ba..4daa17488ef 100644 --- a/Userland/Applications/ThemeEditor/main.cpp +++ b/Userland/Applications/ThemeEditor/main.cpp @@ -67,14 +67,14 @@ private: int main(int argc, char** argv) { - if (pledge("stdio thread rpath accept cpath wpath sendfd shared_buffer unix fattr", nullptr) < 0) { + if (pledge("stdio recvfd sendfd thread rpath accept cpath wpath unix fattr", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio thread rpath accept sendfd shared_buffer", nullptr) < 0) { + if (pledge("stdio recvfd sendfd thread rpath accept", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Applications/Welcome/main.cpp b/Userland/Applications/Welcome/main.cpp index e0b0f723bf7..f907f8d3e75 100644 --- a/Userland/Applications/Welcome/main.cpp +++ b/Userland/Applications/Welcome/main.cpp @@ -113,14 +113,14 @@ static Optional> parse_welcome_file(const String& path) int main(int argc, char** argv) { - if (pledge("stdio sendfd shared_buffer rpath unix cpath fattr", nullptr) < 0) { + if (pledge("stdio recvfd sendfd rpath unix cpath fattr", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio sendfd shared_buffer rpath", nullptr) < 0) { + if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Demos/CatDog/main.cpp b/Userland/Demos/CatDog/main.cpp index 282ada7534c..e93b2583885 100644 --- a/Userland/Demos/CatDog/main.cpp +++ b/Userland/Demos/CatDog/main.cpp @@ -194,7 +194,7 @@ private: int main(int argc, char** argv) { - if (pledge("stdio sendfd rpath wpath cpath sendfd shared_buffer accept unix fattr", nullptr) < 0) { + if (pledge("stdio recvfd sendfd rpath wpath cpath accept unix fattr", nullptr) < 0) { perror("pledge"); return 1; } @@ -202,7 +202,7 @@ int main(int argc, char** argv) auto app = GUI::Application::construct(argc, argv); auto app_icon = GUI::Icon::default_icon("app-catdog"); - if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) { + if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Demos/Cube/Cube.cpp b/Userland/Demos/Cube/Cube.cpp index e40d21bd315..ef1c5dfd6d7 100644 --- a/Userland/Demos/Cube/Cube.cpp +++ b/Userland/Demos/Cube/Cube.cpp @@ -193,7 +193,7 @@ int main(int argc, char** argv) { auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) { + if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Demos/Eyes/main.cpp b/Userland/Demos/Eyes/main.cpp index e71f5620b3b..3db722a882b 100644 --- a/Userland/Demos/Eyes/main.cpp +++ b/Userland/Demos/Eyes/main.cpp @@ -49,14 +49,14 @@ int main(int argc, char* argv[]) args_parser.add_option(grid_columns, "Number of columns in grid (incompatible with --number)", "grid-cols", 'c', "number"); args_parser.parse(argc, argv); - if (pledge("stdio sendfd shared_buffer accept rpath unix cpath wpath fattr thread", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath unix cpath wpath fattr thread", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio sendfd shared_buffer accept rpath cpath wpath thread", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath cpath wpath thread", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Demos/Fire/Fire.cpp b/Userland/Demos/Fire/Fire.cpp index 3f1d2c1b631..03986dea01e 100644 --- a/Userland/Demos/Fire/Fire.cpp +++ b/Userland/Demos/Fire/Fire.cpp @@ -216,7 +216,7 @@ int main(int argc, char** argv) { auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) { + if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Demos/LibGfxDemo/main.cpp b/Userland/Demos/LibGfxDemo/main.cpp index ef8f0693127..f5733182691 100644 --- a/Userland/Demos/LibGfxDemo/main.cpp +++ b/Userland/Demos/LibGfxDemo/main.cpp @@ -200,7 +200,7 @@ int main(int argc, char** argv) { auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) { + if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Demos/LibGfxScaleDemo/main.cpp b/Userland/Demos/LibGfxScaleDemo/main.cpp index 264929009b4..0a8ff729759 100644 --- a/Userland/Demos/LibGfxScaleDemo/main.cpp +++ b/Userland/Demos/LibGfxScaleDemo/main.cpp @@ -96,7 +96,7 @@ int main(int argc, char** argv) { auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) { + if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Demos/Mouse/main.cpp b/Userland/Demos/Mouse/main.cpp index 352f394fc43..6cd3d202893 100644 --- a/Userland/Demos/Mouse/main.cpp +++ b/Userland/Demos/Mouse/main.cpp @@ -174,7 +174,7 @@ int main(int argc, char** argv) auto app = GUI::Application::construct(argc, argv); auto app_icon = GUI::Icon::default_icon("app-mouse"); - if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) { + if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Demos/Screensaver/Screensaver.cpp b/Userland/Demos/Screensaver/Screensaver.cpp index 026d5a12cf4..889106f8d7d 100644 --- a/Userland/Demos/Screensaver/Screensaver.cpp +++ b/Userland/Demos/Screensaver/Screensaver.cpp @@ -124,14 +124,14 @@ void Screensaver::draw() int main(int argc, char** argv) { - if (pledge("stdio rpath wpath cpath sendfd shared_buffer cpath unix fattr", nullptr) < 0) { + if (pledge("stdio rpath wpath cpath recvfd sendfd cpath unix fattr", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio rpath sendfd shared_buffer", nullptr) < 0) { + if (pledge("stdio rpath recvfd sendfd", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Demos/WidgetGallery/main.cpp b/Userland/Demos/WidgetGallery/main.cpp index b331bcc9704..f1d8c77563e 100644 --- a/Userland/Demos/WidgetGallery/main.cpp +++ b/Userland/Demos/WidgetGallery/main.cpp @@ -86,7 +86,7 @@ int main(int argc, char** argv) { auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) { + if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/DevTools/HackStudio/main.cpp b/Userland/DevTools/HackStudio/main.cpp index 3ca8b1a8a02..dcb5766f3bc 100644 --- a/Userland/DevTools/HackStudio/main.cpp +++ b/Userland/DevTools/HackStudio/main.cpp @@ -57,14 +57,14 @@ static void update_path_environment_variable(); int main(int argc, char** argv) { - if (pledge("stdio tty accept rpath cpath wpath shared_buffer proc exec unix fattr thread unix sendfd ptrace", nullptr) < 0) { + if (pledge("stdio shared_buffer recvfd sendfd tty accept rpath cpath wpath proc exec unix fattr thread unix ptrace", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio tty accept rpath cpath wpath shared_buffer proc exec fattr thread unix sendfd ptrace", nullptr) < 0) { + if (pledge("stdio shared_buffer recvfd sendfd tty accept rpath cpath wpath proc exec fattr thread unix ptrace", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/DevTools/IPCCompiler/main.cpp b/Userland/DevTools/IPCCompiler/main.cpp index f7b492f20a6..b060f13c92c 100644 --- a/Userland/DevTools/IPCCompiler/main.cpp +++ b/Userland/DevTools/IPCCompiler/main.cpp @@ -209,6 +209,7 @@ int main(int argc, char** argv) #include #include #include +#include #include #include #include diff --git a/Userland/DevTools/Inspector/main.cpp b/Userland/DevTools/Inspector/main.cpp index 39ba89686e2..0a4fec645fc 100644 --- a/Userland/DevTools/Inspector/main.cpp +++ b/Userland/DevTools/Inspector/main.cpp @@ -49,7 +49,7 @@ using namespace Inspector; int main(int argc, char** argv) { - if (pledge("stdio sendfd shared_buffer rpath accept unix cpath fattr", nullptr) < 0) { + if (pledge("stdio recvfd sendfd rpath accept unix cpath fattr", nullptr) < 0) { perror("pledge"); return 1; } @@ -143,7 +143,7 @@ int main(int argc, char** argv) window->show(); remote_process.update(); - if (pledge("stdio sendfd shared_buffer rpath accept unix", nullptr) < 0) { + if (pledge("stdio recvfd sendfd rpath accept unix", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/DevTools/Playground/main.cpp b/Userland/DevTools/Playground/main.cpp index aff7f9b5da1..e6f7871f5fa 100644 --- a/Userland/DevTools/Playground/main.cpp +++ b/Userland/DevTools/Playground/main.cpp @@ -258,14 +258,14 @@ private: int main(int argc, char** argv) { - if (pledge("stdio thread sendfd shared_buffer accept cpath rpath wpath unix fattr", nullptr) < 0) { + if (pledge("stdio thread recvfd sendfd accept cpath rpath wpath unix fattr", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio thread sendfd shared_buffer accept rpath cpath wpath unix", nullptr) < 0) { + if (pledge("stdio thread recvfd sendfd accept rpath cpath wpath unix", nullptr) < 0) { perror("pledge"); return 1; } @@ -278,7 +278,7 @@ int main(int argc, char** argv) return 1; } - if (pledge("stdio thread sendfd shared_buffer accept rpath cpath wpath", nullptr) < 0) { + if (pledge("stdio thread recvfd sendfd accept rpath cpath wpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Games/2048/main.cpp b/Userland/Games/2048/main.cpp index f1c8bdc732d..7cf03fde356 100644 --- a/Userland/Games/2048/main.cpp +++ b/Userland/Games/2048/main.cpp @@ -43,7 +43,7 @@ int main(int argc, char** argv) { - if (pledge("stdio rpath wpath cpath sendfd shared_buffer accept cpath unix fattr", nullptr) < 0) { + if (pledge("stdio rpath wpath cpath recvfd sendfd accept cpath unix fattr", nullptr) < 0) { perror("pledge"); return 1; } @@ -65,7 +65,7 @@ int main(int argc, char** argv) config->sync(); - if (pledge("stdio rpath sendfd shared_buffer wpath cpath accept", nullptr) < 0) { + if (pledge("stdio rpath recvfd sendfd wpath cpath accept", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Games/Breakout/main.cpp b/Userland/Games/Breakout/main.cpp index 347dd10bcbb..560b7aeaec6 100644 --- a/Userland/Games/Breakout/main.cpp +++ b/Userland/Games/Breakout/main.cpp @@ -34,14 +34,14 @@ int main(int argc, char** argv) { - if (pledge("stdio sendfd rpath wpath cpath sendfd shared_buffer accept unix fattr", nullptr) < 0) { + if (pledge("stdio recvfd sendfd rpath wpath cpath accept unix fattr", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) { + if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Games/Chess/main.cpp b/Userland/Games/Chess/main.cpp index 40bb75b21cf..d519429d37b 100644 --- a/Userland/Games/Chess/main.cpp +++ b/Userland/Games/Chess/main.cpp @@ -47,7 +47,7 @@ int main(int argc, char** argv) RefPtr config = Core::ConfigFile::get_for_app("Chess"); - if (pledge("stdio rpath accept wpath cpath sendfd shared_buffer proc exec", nullptr) < 0) { + if (pledge("stdio rpath accept wpath cpath recvfd sendfd proc exec", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Games/Conway/main.cpp b/Userland/Games/Conway/main.cpp index 024296e3096..317674b86a0 100644 --- a/Userland/Games/Conway/main.cpp +++ b/Userland/Games/Conway/main.cpp @@ -34,14 +34,14 @@ int main(int argc, char** argv) { - if (pledge("stdio rpath wpath cpath sendfd shared_buffer accept cpath unix fattr", nullptr) < 0) { + if (pledge("stdio rpath wpath cpath recvfd sendfd accept cpath unix fattr", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio rpath sendfd shared_buffer accept", nullptr) < 0) { + if (pledge("stdio rpath recvfd sendfd accept", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Games/Minesweeper/main.cpp b/Userland/Games/Minesweeper/main.cpp index dfe82f03e43..3247194abc9 100644 --- a/Userland/Games/Minesweeper/main.cpp +++ b/Userland/Games/Minesweeper/main.cpp @@ -40,14 +40,14 @@ int main(int argc, char** argv) { - if (pledge("stdio rpath accept wpath cpath sendfd shared_buffer unix fattr", nullptr) < 0) { + if (pledge("stdio rpath accept wpath cpath recvfd sendfd unix fattr", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio rpath accept wpath cpath sendfd shared_buffer", nullptr) < 0) { + if (pledge("stdio rpath accept wpath cpath recvfd sendfd", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Games/Pong/main.cpp b/Userland/Games/Pong/main.cpp index b6ea55ed69a..0af4776b45d 100644 --- a/Userland/Games/Pong/main.cpp +++ b/Userland/Games/Pong/main.cpp @@ -35,14 +35,14 @@ int main(int argc, char** argv) { - if (pledge("stdio rpath wpath cpath sendfd shared_buffer accept cpath unix fattr", nullptr) < 0) { + if (pledge("stdio rpath wpath cpath recvfd sendfd accept cpath unix fattr", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio rpath wpath cpath sendfd shared_buffer accept", nullptr) < 0) { + if (pledge("stdio rpath wpath cpath recvfd sendfd accept", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Games/Snake/main.cpp b/Userland/Games/Snake/main.cpp index c9bb4d8c98d..a3156c4c385 100644 --- a/Userland/Games/Snake/main.cpp +++ b/Userland/Games/Snake/main.cpp @@ -38,14 +38,14 @@ int main(int argc, char** argv) { - if (pledge("stdio rpath wpath cpath sendfd shared_buffer accept cpath unix fattr", nullptr) < 0) { + if (pledge("stdio rpath wpath cpath recvfd sendfd accept cpath unix fattr", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio rpath wpath cpath sendfd shared_buffer accept", nullptr) < 0) { + if (pledge("stdio rpath wpath cpath recvfd sendfd accept", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Games/Solitaire/main.cpp b/Userland/Games/Solitaire/main.cpp index 7607c9b4b7a..0979e842a01 100644 --- a/Userland/Games/Solitaire/main.cpp +++ b/Userland/Games/Solitaire/main.cpp @@ -39,7 +39,7 @@ int main(int argc, char** argv) auto app = GUI::Application::construct(argc, argv); auto app_icon = GUI::Icon::default_icon("app-solitaire"); - if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) { + if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/MenuApplets/Audio/main.cpp b/Userland/MenuApplets/Audio/main.cpp index fdb5f94842f..0e7e8236c4d 100644 --- a/Userland/MenuApplets/Audio/main.cpp +++ b/Userland/MenuApplets/Audio/main.cpp @@ -211,14 +211,14 @@ private: int main(int argc, char** argv) { - if (pledge("stdio sendfd shared_buffer accept rpath unix cpath fattr", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath unix cpath fattr", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio sendfd shared_buffer accept rpath unix", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath unix", nullptr) < 0) { perror("pledge"); return 1; } @@ -239,7 +239,7 @@ int main(int argc, char** argv) unveil(nullptr, nullptr); - if (pledge("stdio sendfd shared_buffer accept rpath", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/MenuApplets/ClipboardHistory/main.cpp b/Userland/MenuApplets/ClipboardHistory/main.cpp index 544ec81f5c9..62752967451 100644 --- a/Userland/MenuApplets/ClipboardHistory/main.cpp +++ b/Userland/MenuApplets/ClipboardHistory/main.cpp @@ -35,14 +35,14 @@ int main(int argc, char* argv[]) { - if (pledge("stdio sendfd shared_buffer accept rpath unix cpath fattr", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath unix cpath fattr", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio sendfd shared_buffer accept rpath", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/MenuApplets/Clock/main.cpp b/Userland/MenuApplets/Clock/main.cpp index 84b2dd11e32..05d22cd98f8 100644 --- a/Userland/MenuApplets/Clock/main.cpp +++ b/Userland/MenuApplets/Clock/main.cpp @@ -281,14 +281,14 @@ private: int main(int argc, char** argv) { - if (pledge("stdio sendfd shared_buffer accept rpath unix cpath fattr exec proc", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath unix cpath fattr exec proc", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio sendfd shared_buffer accept rpath exec proc", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath exec proc", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/MenuApplets/Network/main.cpp b/Userland/MenuApplets/Network/main.cpp index afb0545886a..f250b3170e0 100644 --- a/Userland/MenuApplets/Network/main.cpp +++ b/Userland/MenuApplets/Network/main.cpp @@ -169,14 +169,14 @@ private: int main(int argc, char* argv[]) { - if (pledge("stdio sendfd shared_buffer accept rpath unix cpath fattr unix proc exec", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath unix cpath fattr unix proc exec", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio sendfd shared_buffer accept rpath unix proc exec", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath unix proc exec", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/MenuApplets/ResourceGraph/main.cpp b/Userland/MenuApplets/ResourceGraph/main.cpp index fa11b39deff..a7e91ba2338 100644 --- a/Userland/MenuApplets/ResourceGraph/main.cpp +++ b/Userland/MenuApplets/ResourceGraph/main.cpp @@ -203,14 +203,14 @@ private: int main(int argc, char** argv) { - if (pledge("stdio sendfd shared_buffer accept proc exec rpath unix cpath fattr", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept proc exec rpath unix cpath fattr", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio sendfd shared_buffer accept proc exec rpath", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept proc exec rpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/MenuApplets/UserName/main.cpp b/Userland/MenuApplets/UserName/main.cpp index 9a3fd7eea2a..ac841ae21b2 100644 --- a/Userland/MenuApplets/UserName/main.cpp +++ b/Userland/MenuApplets/UserName/main.cpp @@ -65,14 +65,14 @@ private: int main(int argc, char** argv) { - if (pledge("stdio sendfd shared_buffer rpath cpath unix fattr", nullptr) < 0) { + if (pledge("stdio recvfd sendfd rpath cpath unix fattr", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio sendfd shared_buffer rpath", nullptr) < 0) { + if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Services/ChessEngine/main.cpp b/Userland/Services/ChessEngine/main.cpp index bff85809e92..14d7b729a11 100644 --- a/Userland/Services/ChessEngine/main.cpp +++ b/Userland/Services/ChessEngine/main.cpp @@ -30,12 +30,12 @@ int main() { - if (pledge("stdio sendfd shared_buffer accept unix rpath cpath fattr", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept unix rpath cpath fattr", nullptr) < 0) { perror("pledge"); return 1; } Core::EventLoop loop; - if (pledge("stdio sendfd shared_buffer unix", nullptr) < 0) { + if (pledge("stdio recvfd sendfd unix", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Services/Clipboard/main.cpp b/Userland/Services/Clipboard/main.cpp index e5380abcf0d..94efa7a67e4 100644 --- a/Userland/Services/Clipboard/main.cpp +++ b/Userland/Services/Clipboard/main.cpp @@ -32,12 +32,12 @@ int main(int, char**) { - if (pledge("stdio sendfd shared_buffer accept unix rpath cpath fattr", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept unix rpath cpath fattr", nullptr) < 0) { perror("pledge"); return 1; } Core::EventLoop event_loop; - if (pledge("stdio sendfd shared_buffer unix accept", nullptr) < 0) { + if (pledge("stdio recvfd sendfd unix accept", nullptr) < 0) { perror("pledge"); return 1; } @@ -50,7 +50,7 @@ int main(int, char**) bool ok = server->take_over_from_system_server(); ASSERT(ok); - if (pledge("stdio sendfd shared_buffer accept", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Services/ImageDecoder/main.cpp b/Userland/Services/ImageDecoder/main.cpp index 0e2bff77539..50ccef3948c 100644 --- a/Userland/Services/ImageDecoder/main.cpp +++ b/Userland/Services/ImageDecoder/main.cpp @@ -32,7 +32,7 @@ int main(int, char**) { Core::EventLoop event_loop; - if (pledge("stdio sendfd shared_buffer unix", nullptr) < 0) { + if (pledge("stdio shared_buffer recvfd sendfd unix", nullptr) < 0) { perror("pledge"); return 1; } @@ -43,7 +43,7 @@ int main(int, char**) auto socket = Core::LocalSocket::take_over_accepted_socket_from_system_server(); IPC::new_client_connection(socket.release_nonnull(), 1); - if (pledge("stdio sendfd shared_buffer", nullptr) < 0) { + if (pledge("stdio shared_buffer recvfd sendfd", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Services/NotificationServer/main.cpp b/Userland/Services/NotificationServer/main.cpp index 2b562ce3835..3d00b380c38 100644 --- a/Userland/Services/NotificationServer/main.cpp +++ b/Userland/Services/NotificationServer/main.cpp @@ -35,7 +35,7 @@ int main(int argc, char** argv) { - if (pledge("stdio recvfd sendfd shared_buffer accept rpath wpath cpath unix fattr", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath wpath cpath unix fattr", nullptr) < 0) { perror("pledge"); return 1; } @@ -63,7 +63,7 @@ int main(int argc, char** argv) unveil(nullptr, nullptr); - if (pledge("stdio recvfd sendfd shared_buffer accept rpath", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Services/SystemMenu/main.cpp b/Userland/Services/SystemMenu/main.cpp index fde1a20fe0f..9a542369898 100644 --- a/Userland/Services/SystemMenu/main.cpp +++ b/Userland/Services/SystemMenu/main.cpp @@ -75,7 +75,7 @@ int main(int argc, char** argv) GUI::WindowServerConnection::the().send_sync(menu->menu_id()); - if (pledge("stdio sendfd shared_buffer accept rpath proc exec", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath proc exec", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Services/Taskbar/main.cpp b/Userland/Services/Taskbar/main.cpp index d6584ab9142..e6ee5d2b256 100644 --- a/Userland/Services/Taskbar/main.cpp +++ b/Userland/Services/Taskbar/main.cpp @@ -33,7 +33,7 @@ int main(int argc, char** argv) { - if (pledge("stdio recvfd sendfd shared_buffer accept proc exec rpath unix cpath fattr sigaction", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept proc exec rpath unix cpath fattr sigaction", nullptr) < 0) { perror("pledge"); return 1; } @@ -45,7 +45,7 @@ int main(int argc, char** argv) ; }); - if (pledge("stdio recvfd sendfd shared_buffer accept proc exec rpath", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept proc exec rpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Userland/Services/WebContent/main.cpp b/Userland/Services/WebContent/main.cpp index 65c79ced7bd..addab4b24fb 100644 --- a/Userland/Services/WebContent/main.cpp +++ b/Userland/Services/WebContent/main.cpp @@ -32,7 +32,7 @@ int main(int, char**) { Core::EventLoop event_loop; - if (pledge("stdio recvfd sendfd shared_buffer accept unix rpath recvfd", nullptr) < 0) { + if (pledge("stdio shared_buffer recvfd sendfd accept unix rpath", nullptr) < 0) { perror("pledge"); return 1; }