diff options
author | Andreas Kling <awesomekling@gmail.com> | 2020-01-11 23:53:54 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2020-01-11 23:53:54 +0100 |
commit | 2b20e8e187553d0f10a3a46fb4c91f99ba73a52d (patch) | |
tree | c75d47d7d11b58f4c1b1ea733116fad6bfcce570 | |
parent | 2067c003ff2021a85be84d1f31ba0fabe2b9d0a1 (diff) | |
download | serenity-2b20e8e187553d0f10a3a46fb4c91f99ba73a52d.zip |
IRCClient: Use pledge()
-rw-r--r-- | Applications/IRCClient/main.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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(); |