From b39e732eb321377d6c19a209a1787c7f97f9a7e5 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 11 Jan 2020 22:13:38 +0100 Subject: [PATCH] FileManager: Use pledge() --- Applications/FileManager/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Applications/FileManager/main.cpp b/Applications/FileManager/main.cpp index 1c1da6bf41..05edfee89e 100644 --- a/Applications/FileManager/main.cpp +++ b/Applications/FileManager/main.cpp @@ -31,6 +31,11 @@ int main(int argc, char** argv) { + if (pledge("stdio thread unix shared_buffer cpath rpath wpath fattr proc exec", nullptr) < 0) { + perror("pledge"); + return 1; + } + struct sigaction act; memset(&act, 0, sizeof(act)); act.sa_flags = SA_NOCLDWAIT;