SystemMonitor: Unveil /dev

DevicesModel wants to match devices supported by the kernel to device nodes
in /dev.
This commit is contained in:
Sergey Bugaev 2020-01-30 14:07:31 +03:00 committed by Andreas Kling
commit 1e948f1766
Notes: sideshowbarker 2024-07-19 09:45:04 +09:00

View file

@ -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();