From 1e948f17668c7b5a2a2dc5d6f461207f26c5f081 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Thu, 30 Jan 2020 14:07:31 +0300 Subject: [PATCH] SystemMonitor: Unveil /dev DevicesModel wants to match devices supported by the kernel to device nodes in /dev. --- Applications/SystemMonitor/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Applications/SystemMonitor/main.cpp b/Applications/SystemMonitor/main.cpp index 8a551a0567..726788a2fd 100644 --- a/Applications/SystemMonitor/main.cpp +++ b/Applications/SystemMonitor/main.cpp @@ -103,6 +103,11 @@ int main(int argc, char** argv) return 1; } + if (unveil("/dev", "r") < 0) { + perror("unveil"); + return 1; + } + unveil(nullptr, nullptr); auto window = GWindow::construct();