diff --git a/Applications/SystemMenu/main.cpp b/Applications/SystemMenu/main.cpp index 3ba2948466..d2d4ab66ec 100644 --- a/Applications/SystemMenu/main.cpp +++ b/Applications/SystemMenu/main.cpp @@ -71,6 +71,23 @@ int main(int argc, char** argv) GUI::WindowServerConnection::the().send_sync(menu->menu_id()); + if (pledge("stdio shared_buffer accept rpath proc exec", nullptr) < 0) { + perror("pledge"); + return 1; + } + + if (unveil("/bin", "x")) { + perror("unveil"); + return 1; + } + + if (unveil("/res", "r")) { + perror("unveil"); + return 1; + } + + unveil(nullptr, nullptr); + return app.exec(); }