diff options
author | Andreas Kling <kling@serenityos.org> | 2021-05-13 23:20:26 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-13 23:28:40 +0200 |
commit | 31d4bcf5bfe35a892c6ec04cc9e8d4417b990a48 (patch) | |
tree | faae01cc0950a4d1de1eb7932f07b799c558f0fd /Userland/DevTools/Playground/main.cpp | |
parent | 04d78adaf795c803f6867335c63f8339f13459eb (diff) | |
download | serenity-31d4bcf5bfe35a892c6ec04cc9e8d4417b990a48.zip |
Userland: Tighten a *lot* of pledges! :^)
Since applications using Core::EventLoop no longer need to create a
socket in /tmp/rpc/, and also don't need to listen for incoming
connections on this socket, we can remove a whole bunch of pledges!
Diffstat (limited to 'Userland/DevTools/Playground/main.cpp')
-rw-r--r-- | Userland/DevTools/Playground/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/DevTools/Playground/main.cpp b/Userland/DevTools/Playground/main.cpp index 010e2f2f08..d2b3d319d9 100644 --- a/Userland/DevTools/Playground/main.cpp +++ b/Userland/DevTools/Playground/main.cpp @@ -58,14 +58,14 @@ void UnregisteredWidget::paint_event(GUI::PaintEvent& event) int main(int argc, char** argv) { - if (pledge("stdio thread recvfd sendfd accept cpath rpath wpath unix fattr", nullptr) < 0) { + if (pledge("stdio thread recvfd sendfd cpath rpath wpath unix", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio thread recvfd sendfd accept rpath cpath wpath unix", nullptr) < 0) { + if (pledge("stdio thread recvfd sendfd rpath cpath wpath unix", nullptr) < 0) { perror("pledge"); return 1; } @@ -78,7 +78,7 @@ int main(int argc, char** argv) return 1; } - if (pledge("stdio thread recvfd sendfd accept rpath cpath wpath", nullptr) < 0) { + if (pledge("stdio thread recvfd sendfd rpath cpath wpath", nullptr) < 0) { perror("pledge"); return 1; } |