From 5f5791cac8696e680cea975dac7b69a4a4c1ead6 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 11 Jan 2020 21:34:40 +0100 Subject: TTYServer: Use pledge() --- Servers/TTYServer/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Servers/TTYServer') 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; -- cgit v1.2.3