author | Jeremie Courreges-Anglas <jca@openbsd.org> | |
Thu, 8 Dec 2016 09:57:53 +0000 (10:57 +0100) | ||
committer | Landry Breuil <landry@rhaalovely.net> | |
Thu, 8 Dec 2016 09:57:53 +0000 (10:57 +0100) | ||
commit | f2530ffcb0fb19c69215878c8ffe363d2d01ed50 | |
tree | 4a0f06877d8786f2993c096d392a9a0456d88fae | tree | snapshot |
parent | b088d09dfda9b42c5c31b12a1b77101dffdf8c5a | commit | diff |
Fix tcpconns plugin on OpenBSD by using kvm_getfiles() interface (#2061)
Starting with OpenBSD 6.1, access to kvm device is restricted by default,
and tcpconns plugin used the kvm_nlist() interface which needs specific
privileges to access kernel memory. kvm_getfiles() doesn't need these
privileges, and is the interface used by netstat(1) to list connections.
Starting with OpenBSD 6.1, access to kvm device is restricted by default,
and tcpconns plugin used the kvm_nlist() interface which needs specific
privileges to access kernel memory. kvm_getfiles() doesn't need these
privileges, and is the interface used by netstat(1) to list connections.
src/tcpconns.c | diff | blob | history |