diff options
author | Andreas Kling <awesomekling@gmail.com> | 2020-01-11 21:34:40 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2020-01-11 21:35:01 +0100 |
commit | 5f5791cac8696e680cea975dac7b69a4a4c1ead6 (patch) | |
tree | 2c49c119eb7b0147e2085d6f249c000118ee84c2 | |
parent | 7b6b1bae02312fd6f23577df8fa63a76130b055f (diff) | |
download | serenity-5f5791cac8696e680cea975dac7b69a4a4c1ead6.zip |
TTYServer: Use pledge()
-rw-r--r-- | Servers/TTYServer/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Servers/TTYServer/main.cpp b/Servers/TTYServer/main.cpp index d26fb938cb..8b02fab67d 100644 --- a/Servers/TTYServer/main.cpp +++ b/Servers/TTYServer/main.cpp @@ -6,6 +6,11 @@ int main(int argc, char** argv) { + if (pledge("stdio tty proc exec", nullptr) < 0) { + perror("pledge"); + return 1; + } + if (argc < 2) return -1; |