diff --git a/Applications/FileManager/main.cpp b/Applications/FileManager/main.cpp index 05edfee89e..d97c16156b 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 4ffe0cf86e..19b31a517c 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 6461c79723..b46b576e79 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 583e4aa810..b5d804ae9b 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 303137399c..e9fab809a5 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 c64ba482e9..6624d4385d 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 4fdb2fad9d..6c0aa6c7c3 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 ad72ace1c1..09c0567c51 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 6e453f7e5b..f88c0bc2fd 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 267cb5c6b3..2185c046c9 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 8b40255ae7..853c696977 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 ec9b418d8b..7f1964056c 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; }