mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 12:49:08 +00:00
SystemMonitor: Use unveil()
This commit is contained in:
@@ -88,6 +88,23 @@ int main(int argc, char** argv)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (unveil("/etc/passwd", "r") < 0) {
|
||||||
|
perror("unveil");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (unveil("/res", "r") < 0) {
|
||||||
|
perror("unveil");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (unveil("/proc", "r") < 0) {
|
||||||
|
perror("unveil");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
unveil(nullptr, nullptr);
|
||||||
|
|
||||||
auto keeper = GWidget::construct();
|
auto keeper = GWidget::construct();
|
||||||
keeper->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
keeper->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
||||||
keeper->set_fill_with_background_color(true);
|
keeper->set_fill_with_background_color(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user