From 3a07f6e345af4fc42fab3b07d0c88c45a6abed73 Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Mon, 24 Aug 2020 20:05:20 +0430 Subject: Spreadsheet: Document runtime functions and add a help window ...that can automatically generate documentation pages from the objects. --- Applications/Spreadsheet/main.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Applications/Spreadsheet/main.cpp') diff --git a/Applications/Spreadsheet/main.cpp b/Applications/Spreadsheet/main.cpp index c94fdfd281..cd4fd4ff17 100644 --- a/Applications/Spreadsheet/main.cpp +++ b/Applications/Spreadsheet/main.cpp @@ -43,6 +43,16 @@ int main(int argc, char* argv[]) return 1; } + if (unveil("/tmp/portal/webcontent", "rw") < 0) { + perror("unveil"); + return 1; + } + + if (unveil("/etc", "r") < 0) { + perror("unveil"); + return 1; + } + if (unveil("/res", "r") < 0) { perror("unveil"); return 1; -- cgit v1.2.3