summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2020-01-11 21:34:40 +0100
committerAndreas Kling <awesomekling@gmail.com>2020-01-11 21:35:01 +0100
commit5f5791cac8696e680cea975dac7b69a4a4c1ead6 (patch)
tree2c49c119eb7b0147e2085d6f249c000118ee84c2
parent7b6b1bae02312fd6f23577df8fa63a76130b055f (diff)
downloadserenity-5f5791cac8696e680cea975dac7b69a4a4c1ead6.zip
TTYServer: Use pledge()
-rw-r--r--Servers/TTYServer/main.cpp5
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;