Use kvm_openfiles with KVM_NO_FILES on OpenBSD (#2061)
authorJeremie Courreges-Anglas <jca@openbsd.org>
Thu, 8 Dec 2016 09:55:04 +0000 (10:55 +0100)
committerLandry Breuil <landry@rhaalovely.net>
Thu, 8 Dec 2016 09:55:04 +0000 (10:55 +0100)
commitb088d09dfda9b42c5c31b12a1b77101dffdf8c5a
treede3903deebe66133acfede4418ac617ae1910c30
parentf65cebb764a2e005148d00311caec48dd2540c20
Use kvm_openfiles with KVM_NO_FILES on OpenBSD (#2061)

Starting with OpenBSD 6.1, access to kvm device is restricted by default,
and processes plugin doesnt need specific privileges on it.

Fixes 'permission denied' error messages with the kern.allowkmem sysctl
defaulting to 0.
src/processes.c