From 2b20e8e187553d0f10a3a46fb4c91f99ba73a52d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 11 Jan 2020 23:53:54 +0100 Subject: [PATCH] IRCClient: Use pledge() --- Applications/IRCClient/main.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Applications/IRCClient/main.cpp b/Applications/IRCClient/main.cpp index 02f00c226a..e2323e48d2 100644 --- a/Applications/IRCClient/main.cpp +++ b/Applications/IRCClient/main.cpp @@ -5,8 +5,18 @@ int main(int argc, char** argv) { + if (pledge("stdio inet dns unix shared_buffer cpath rpath fattr", nullptr) < 0) { + perror("pledge"); + return 1; + } + GApplication app(argc, argv); + if (pledge("stdio inet dns unix shared_buffer rpath", nullptr) < 0) { + perror("pledge"); + return 1; + } + IRCAppWindow app_window; app_window.show();