From ce6864dd79afc6163df339de1b6cefd84ec89258 Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Wed, 22 Jan 2020 02:36:22 -0800 Subject: [PATCH] man: Use unveil() --- Userland/man.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Userland/man.cpp b/Userland/man.cpp index 4a1d38f805c..34f238b7d77 100644 --- a/Userland/man.cpp +++ b/Userland/man.cpp @@ -37,6 +37,13 @@ int main(int argc, char* argv[]) return 1; } + if (unveil("/usr/share/man", "r") < 0) { + perror("unveil"); + return 1; + } + + unveil(nullptr, nullptr); + String name; String section;