diff --git a/Applications/FileManager/main.cpp b/Applications/FileManager/main.cpp index 05edfee89e8..d97c16156b3 100644 --- a/Applications/FileManager/main.cpp +++ b/Applications/FileManager/main.cpp @@ -50,6 +50,11 @@ int main(int argc, char** argv) GApplication app(argc, argv); + if (pledge("stdio thread shared_buffer cpath rpath wpath fattr proc exec", nullptr) < 0) { + perror("pledge"); + return 1; + } + auto window = GWindow::construct(); window->set_title("File Manager"); diff --git a/Applications/Help/main.cpp b/Applications/Help/main.cpp index 4ffe0cf86eb..19b31a517cc 100644 --- a/Applications/Help/main.cpp +++ b/Applications/Help/main.cpp @@ -31,7 +31,7 @@ int main(int argc, char* argv[]) GApplication app(argc, argv); - if (pledge("stdio unix shared_buffer rpath", nullptr) < 0) { + if (pledge("stdio shared_buffer rpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Applications/QuickShow/main.cpp b/Applications/QuickShow/main.cpp index 6461c797230..b46b576e795 100644 --- a/Applications/QuickShow/main.cpp +++ b/Applications/QuickShow/main.cpp @@ -18,7 +18,7 @@ int main(int argc, char** argv) GApplication app(argc, argv); - if (pledge("stdio unix shared_buffer rpath", nullptr) < 0) { + if (pledge("stdio shared_buffer rpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Applications/SoundPlayer/main.cpp b/Applications/SoundPlayer/main.cpp index 583e4aa810a..b5d804ae9be 100644 --- a/Applications/SoundPlayer/main.cpp +++ b/Applications/SoundPlayer/main.cpp @@ -27,6 +27,11 @@ int main(int argc, char** argv) auto audio_client = AClientConnection::construct(); audio_client->handshake(); + if (pledge("stdio shared_buffer rpath", nullptr) < 0) { + perror("pledge"); + return 1; + } + auto window = GWindow::construct(); window->set_title("SoundPlayer"); window->set_resizable(false); diff --git a/Applications/SystemMonitor/main.cpp b/Applications/SystemMonitor/main.cpp index 303137399cf..e9fab809a52 100644 --- a/Applications/SystemMonitor/main.cpp +++ b/Applications/SystemMonitor/main.cpp @@ -56,7 +56,7 @@ int main(int argc, char** argv) GApplication app(argc, argv); - if (pledge("stdio proc shared_buffer rpath unix", nullptr) < 0) { + if (pledge("stdio proc shared_buffer rpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Applications/Taskbar/main.cpp b/Applications/Taskbar/main.cpp index c64ba482e96..6624d4385d8 100644 --- a/Applications/Taskbar/main.cpp +++ b/Applications/Taskbar/main.cpp @@ -12,7 +12,7 @@ int main(int argc, char** argv) GApplication app(argc, argv); - if (pledge("stdio shared_buffer proc exec rpath unix", nullptr) < 0) { + if (pledge("stdio shared_buffer proc exec rpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Applications/Terminal/main.cpp b/Applications/Terminal/main.cpp index 4fdb2fad9dc..6c0aa6c7c3a 100644 --- a/Applications/Terminal/main.cpp +++ b/Applications/Terminal/main.cpp @@ -153,7 +153,7 @@ int main(int argc, char** argv) GApplication app(argc, argv); - if (pledge("stdio tty rpath cpath wpath shared_buffer proc exec unix", nullptr) < 0) { + if (pledge("stdio tty rpath cpath wpath shared_buffer proc exec", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/Applications/TextEditor/main.cpp b/Applications/TextEditor/main.cpp index ad72ace1c13..09c0567c510 100644 --- a/Applications/TextEditor/main.cpp +++ b/Applications/TextEditor/main.cpp @@ -11,7 +11,7 @@ int main(int argc, char** argv) GApplication app(argc, argv); - if (pledge("stdio rpath cpath wpath shared_buffer unix", nullptr) < 0) { + if (pledge("stdio rpath cpath wpath shared_buffer", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/DevTools/HackStudio/main.cpp b/DevTools/HackStudio/main.cpp index 6e453f7e5ba..f88c0bc2fd6 100644 --- a/DevTools/HackStudio/main.cpp +++ b/DevTools/HackStudio/main.cpp @@ -103,6 +103,11 @@ int main(int argc, char** argv) GApplication app(argc, argv); + if (pledge("stdio tty rpath cpath wpath shared_buffer proc fattr", nullptr) < 0) { + perror("pledge"); + return 1; + } + Function update_actions; g_window = GWindow::construct(); diff --git a/MenuApplets/Audio/main.cpp b/MenuApplets/Audio/main.cpp index 267cb5c6b35..2185c046c91 100644 --- a/MenuApplets/Audio/main.cpp +++ b/MenuApplets/Audio/main.cpp @@ -69,5 +69,11 @@ int main(int argc, char** argv) auto widget = AudioWidget::construct(); window->set_main_widget(widget); window->show(); + + if (pledge("stdio shared_buffer rpath", nullptr) < 0) { + perror("pledge"); + return 1; + } + return app.exec(); } diff --git a/MenuApplets/CPUGraph/main.cpp b/MenuApplets/CPUGraph/main.cpp index 8b40255ae73..853c6969776 100644 --- a/MenuApplets/CPUGraph/main.cpp +++ b/MenuApplets/CPUGraph/main.cpp @@ -79,7 +79,7 @@ int main(int argc, char** argv) GApplication app(argc, argv); - if (pledge("stdio shared_buffer rpath unix", nullptr) < 0) { + if (pledge("stdio shared_buffer rpath", nullptr) < 0) { perror("pledge"); return 1; } diff --git a/MenuApplets/Clock/main.cpp b/MenuApplets/Clock/main.cpp index ec9b418d8b3..7f1964056ca 100644 --- a/MenuApplets/Clock/main.cpp +++ b/MenuApplets/Clock/main.cpp @@ -71,7 +71,7 @@ int main(int argc, char** argv) GApplication app(argc, argv); - if (pledge("stdio shared_buffer rpath unix", nullptr) < 0) { + if (pledge("stdio shared_buffer rpath", nullptr) < 0) { perror("pledge"); return 1; }