From 8c2009c5bef462801f950d8fc0346293ba49ea1f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 11 Jan 2020 20:49:31 +0100 Subject: [PATCH] host: Use pledge() --- Userland/host.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Userland/host.cpp b/Userland/host.cpp index 74f1a0c822..232b94240b 100644 --- a/Userland/host.cpp +++ b/Userland/host.cpp @@ -3,9 +3,15 @@ #include #include #include +#include int main(int argc, char** argv) { + if (pledge("stdio dns", nullptr) < 0) { + perror("pledge"); + return 1; + } + if (argc < 2) { printf("usage: host \n"); return 0;