summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_ipcomp.c
diff options
context:
space:
mode:
authoruebayasi <uebayasi@openbsd.org>2014-12-05 04:12:48 +0000
committeruebayasi <uebayasi@openbsd.org>2014-12-05 04:12:48 +0000
commitd15bb7c984c487ac4ea79df315d99e1a5dea72bc (patch)
tree9e277ffae020cd409ce2ba1461e7f62fedb4f02e /sys/netinet/ip_ipcomp.c
parentRework the number handling to avoid an integer overflow/crash (diff)
downloadwireguard-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/netinet/ip_ipcomp.c')
0 files changed, 0 insertions, 0 deletions