SystemMonitor: Add an "Unveiled paths" section to the per-process tabs

This shows the data from /proc/PID/unveil in a nice table view. :^)
This commit is contained in:
Andreas Kling 2020-01-20 22:32:44 +01:00
parent 17e5fc301b
commit d8357ceb26
Notes: sideshowbarker 2024-07-19 09:55:59 +09:00
4 changed files with 107 additions and 0 deletions

View file

@ -33,6 +33,7 @@
#include "ProcessModel.h"
#include "ProcessStacksWidget.h"
#include "ProcessTableView.h"
#include "ProcessUnveiledPathsWidget.h"
#include <LibCore/CTimer.h>
#include <LibDraw/PNGLoader.h>
#include <LibGUI/GAboutDialog.h>
@ -213,6 +214,9 @@ int main(int argc, char** argv)
auto open_files_widget = ProcessFileDescriptorMapWidget::construct(nullptr);
process_tab_widget->add_widget("Open files", open_files_widget);
auto unveiled_paths_widget = ProcessUnveiledPathsWidget::construct(nullptr);
process_tab_widget->add_widget("Unveiled paths", unveiled_paths_widget);
auto stacks_widget = ProcessStacksWidget::construct(nullptr);
process_tab_widget->add_widget("Stacks", stacks_widget);
@ -220,6 +224,7 @@ int main(int argc, char** argv)
open_files_widget->set_pid(pid);
stacks_widget->set_pid(pid);
memory_map_widget->set_pid(pid);
unveiled_paths_widget->set_pid(pid);
};
window->show();