mirror of
https://github.com/RGBCube/serenity
synced 2025-06-30 05:32:07 +00:00
SystemMonitor: Show process unveil() state as "Veil"
A process has one of three veil states: - None: unveil() has never been called. - Dropped: unveil() has been called, and can be called again. - Locked: unveil() has been called, and cannot be called again.
This commit is contained in:
parent
edf509c19e
commit
66598f60fe
5 changed files with 25 additions and 1 deletions
|
@ -822,6 +822,18 @@ Optional<KBuffer> procfs$all(InodeIdentifier)
|
|||
|
||||
process_object.add("pledge", pledge_builder.to_string());
|
||||
|
||||
switch (process.unveil_state()) {
|
||||
case UnveilState::None:
|
||||
process_object.add("veil", "None");
|
||||
break;
|
||||
case UnveilState::VeilDropped:
|
||||
process_object.add("veil", "Dropped");
|
||||
break;
|
||||
case UnveilState::VeilLocked:
|
||||
process_object.add("veil", "Locked");
|
||||
break;
|
||||
}
|
||||
|
||||
process_object.add("pid", process.pid());
|
||||
process_object.add("pgid", process.tty() ? process.tty()->pgid() : 0);
|
||||
process_object.add("pgp", process.pgid());
|
||||
|
@ -1531,7 +1543,6 @@ size_t ProcFSProxyInode::directory_entry_count() const
|
|||
return m_fd->inode()->directory_entry_count();
|
||||
}
|
||||
|
||||
|
||||
KResult ProcFSInode::add_child(InodeIdentifier child_id, const StringView& name, mode_t)
|
||||
{
|
||||
(void)child_id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue