summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f65cebb)
raw | patch | inline | side by side (parent: f65cebb)
author | Jeremie Courreges-Anglas <jca@openbsd.org> | |
Thu, 8 Dec 2016 09:55:04 +0000 (10:55 +0100) | ||
committer | Landry Breuil <landry@rhaalovely.net> | |
Thu, 8 Dec 2016 09:55:04 +0000 (10:55 +0100) |
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.
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 | patch | blob | history |
diff --git a/src/processes.c b/src/processes.c
index 86f690f3e85f2206bf4cc7505e5c6afdccf4d37d..4f61351ad11ad35176233da9a46ef6157ee77d5e 100644 (file)
--- a/src/processes.c
+++ b/src/processes.c
ps_list_reset();
/* Open the kvm interface, get a descriptor */
- kd = kvm_open(NULL, NULL, NULL, 0, errbuf);
+ kd = kvm_openfiles(NULL, NULL, NULL, KVM_NO_FILES, errbuf);
if (kd == NULL) {
ERROR("processes plugin: Cannot open kvm interface: %s", errbuf);
return (0);