summaryrefslogtreecommitdiff
path: root/sys/kern/kern_sig.c
diff options
context:
space:
mode:
authorMasao Uebayashi <uebayasi@cvs.openbsd.org>2014-12-05 04:12:49 +0000
committerMasao Uebayashi <uebayasi@cvs.openbsd.org>2014-12-05 04:12:49 +0000
commitc8525d7f58e30cc7e582a014d2ed096379ccbe9e (patch)
treeec1d9e9fd25511db56d8684473978444d773b6fb /sys/kern/kern_sig.c
parent70eb0676761b32588c52742bb357451ea0d0c95d (diff)
Introduce a new sysctl to retrieve VM map entries
This adds a new sysctl KERN_PROC_VMMAP, which returns an array of VM map entries of a specified process. This prevents debuggers from iterating vm_map_entry RB tree via kvm(3). The name KERN_PROC_VMMAP and struct kinfo_vmentry are chosen from the same function in FreeBSD. struct kinfo_vmentry is revised to reduce size, because OpenBSD does not keep track of filepaths. The semantic is also changed to return max buffer size as a hint, and start iteration at the specified base address. Much valuable input from deraadt@, guenther@, tedu@ OK tedu@ deraadt@
Diffstat (limited to 'sys/kern/kern_sig.c')
0 files changed, 0 insertions, 0 deletions