summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-12-21 16:26:42 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-12-21 16:26:42 +0100
commitc5c1cc817e824dce13c976248ae40731e43bf58f (patch)
tree60a33dbacef6206b301fc12f3934ae8470db6e12 /Kernel
parentae2d72377dceb95eeaf4901b9371db71ab5b86ab (diff)
downloadserenity-c5c1cc817e824dce13c976248ae40731e43bf58f.zip
Kernel: Expose region executable bit in /proc/PID/vm
Also show it in SystemMonitor's process memory map table (as 'X') :^)
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/FileSystem/ProcFS.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/FileSystem/ProcFS.cpp b/Kernel/FileSystem/ProcFS.cpp
index 69f784a335..f959e59110 100644
--- a/Kernel/FileSystem/ProcFS.cpp
+++ b/Kernel/FileSystem/ProcFS.cpp
@@ -263,6 +263,7 @@ Optional<KBuffer> procfs$pid_vm(InodeIdentifier identifier)
auto region_object = array.add_object();
region_object.add("readable", region.is_readable());
region_object.add("writable", region.is_writable());
+ region_object.add("executable", region.is_executable());
region_object.add("stack", region.is_stack());
region_object.add("shared", region.is_shared());
region_object.add("user_accessible", region.is_user_accessible());