diff options
author | Andreas Kling <kling@serenityos.org> | 2020-12-27 00:54:13 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-27 01:16:56 +0100 |
commit | 21ccbc2167dc426f825867ac87d79928c2acdd4f (patch) | |
tree | 2cc345fb98c413391e4b99fb6e05dec8972c2d2e /Libraries/LibCore | |
parent | 87492e723b668e6ed772079201c300af089fb45d (diff) | |
download | serenity-21ccbc2167dc426f825867ac87d79928c2acdd4f.zip |
Kernel: Expose process executable paths in /proc/all
Diffstat (limited to 'Libraries/LibCore')
-rw-r--r-- | Libraries/LibCore/ProcessStatisticsReader.cpp | 1 | ||||
-rw-r--r-- | Libraries/LibCore/ProcessStatisticsReader.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibCore/ProcessStatisticsReader.cpp b/Libraries/LibCore/ProcessStatisticsReader.cpp index 5a0ff949c6..948e25aa3c 100644 --- a/Libraries/LibCore/ProcessStatisticsReader.cpp +++ b/Libraries/LibCore/ProcessStatisticsReader.cpp @@ -64,6 +64,7 @@ HashMap<pid_t, Core::ProcessStatistics> ProcessStatisticsReader::get_all() process.ppid = process_object.get("ppid").to_u32(); process.nfds = process_object.get("nfds").to_u32(); process.name = process_object.get("name").to_string(); + process.executable = process_object.get("executable").to_string(); process.tty = process_object.get("tty").to_string(); process.pledge = process_object.get("pledge").to_string(); process.veil = process_object.get("veil").to_string(); diff --git a/Libraries/LibCore/ProcessStatisticsReader.h b/Libraries/LibCore/ProcessStatisticsReader.h index 9c3bd93a80..0e4765d906 100644 --- a/Libraries/LibCore/ProcessStatisticsReader.h +++ b/Libraries/LibCore/ProcessStatisticsReader.h @@ -66,6 +66,7 @@ struct ProcessStatistics { pid_t ppid; unsigned nfds; String name; + String executable; String tty; String pledge; String veil; |