diff options
author | 2014-12-05 04:12:48 +0000 | |
---|---|---|
committer | 2014-12-05 04:12:48 +0000 | |
commit | d15bb7c984c487ac4ea79df315d99e1a5dea72bc (patch) | |
tree | 9e277ffae020cd409ce2ba1461e7f62fedb4f02e /sys/netinet6 | |
parent | Rework the number handling to avoid an integer overflow/crash (diff) | |
download | wireguard-openbsd-d15bb7c984c487ac4ea79df315d99e1a5dea72bc.tar.xz wireguard-openbsd-d15bb7c984c487ac4ea79df315d99e1a5dea72bc.zip |
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/netinet6')
0 files changed, 0 insertions, 0 deletions