瀏覽代碼

SystemMonitor: Unveil /dev

DevicesModel wants to match devices supported by the kernel to device nodes
in /dev.
Sergey Bugaev 5 年之前
父節點
當前提交
1e948f1766
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Applications/SystemMonitor/main.cpp

+ 5 - 0
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();