summaryrefslogtreecommitdiff
path: root/lib/libkvm
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-03-20 03:43:09 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-03-20 03:43:09 +0000
commitb47f25034315552bd2b96ba0ce86ccbca22c3025 (patch)
treeb9c23d42845a2d6f792ca3e4b5585063e703ee0a /lib/libkvm
parent885d5f8e7c8a6ce8b6b8985247f8041cff3f6853 (diff)
When non-root asks sysctl for kinfo proc or file requests, do not fill in
any kernel addresses information. ok guenther
Diffstat (limited to 'lib/libkvm')
-rw-r--r--lib/libkvm/kvm_proc2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libkvm/kvm_proc2.c b/lib/libkvm/kvm_proc2.c
index bd4f81e8070..7d0ee24559a 100644
--- a/lib/libkvm/kvm_proc2.c
+++ b/lib/libkvm/kvm_proc2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kvm_proc2.c,v 1.14 2012/11/12 00:29:09 guenther Exp $ */
+/* $OpenBSD: kvm_proc2.c,v 1.15 2013/03/20 03:43:08 deraadt Exp $ */
/* $NetBSD: kvm_proc.c,v 1.30 1999/03/24 05:50:50 mrg Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -289,7 +289,7 @@ kvm_proclist(kvm_t *kd, int op, int arg, struct proc *p,
if ((proc.p_flag & P_THREAD) == 0) {
FILL_KPROC(&kp, do_copy_str, &proc, &process, &pcred,
&ucred, &pgrp, p, proc.p_p, &sess, vmp, limp, sap,
- 0);
+ 0, 1);
/* stuff that's too painful to generalize */
kp.p_pid = process_pid;
@@ -322,7 +322,7 @@ kvm_proclist(kvm_t *kd, int op, int arg, struct proc *p,
continue;
FILL_KPROC(&kp, do_copy_str, &proc, &process, &pcred, &ucred,
- &pgrp, p, proc.p_p, &sess, vmp, limp, sap, 1);
+ &pgrp, p, proc.p_p, &sess, vmp, limp, sap, 1, 1);
/* stuff that's too painful to generalize into the macros */
kp.p_pid = process_pid;