mirror of
https://github.com/RGBCube/serenity
synced 2025-07-04 06:57:35 +00:00
Kernel+SystemMonitor: Publish can_read/write state for open files
The can_read() and can_write() states for file descriptions are now published in /proc, allowing SystemMonitor to display it.
This commit is contained in:
parent
660db0f79a
commit
06a80bcf69
3 changed files with 10 additions and 2 deletions
|
@ -25,6 +25,12 @@ ProcessFileDescriptorMapWidget::ProcessFileDescriptorMapWidget(GWidget* parent)
|
|||
pid_fds_fields.empend("On exec", TextAlignment::CenterLeft, [](auto& object) {
|
||||
return object.get("cloexec").to_bool() ? "Close" : "Keep";
|
||||
});
|
||||
pid_fds_fields.empend("Can read", TextAlignment::CenterLeft, [](auto& object) {
|
||||
return object.get("can_read").to_bool() ? "Yes" : "No";
|
||||
});
|
||||
pid_fds_fields.empend("Can write", TextAlignment::CenterLeft, [](auto& object) {
|
||||
return object.get("can_write").to_bool() ? "Yes" : "No";
|
||||
});
|
||||
|
||||
m_table_view->set_model(GJsonArrayModel::create({}, move(pid_fds_fields)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue