1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:08:12 +00:00

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
parent 3ffdff5c02
commit 1e948f1766

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