svn commit: r228302 - head/sys/kern
Mikolaj Golub
trociny at FreeBSD.org
Tue Dec 6 06:40:15 UTC 2011
Author: trociny
Date: Tue Dec 6 06:40:14 2011
New Revision: 228302
URL: http://svn.freebsd.org/changeset/base/228302
Log:
Really protect kern.proc.ps_strings sysctls with p_candebug(). This
was intended to be in r228288.
Spotted by: many
MFC after: 1 week
Modified:
head/sys/kern/kern_proc.c
Modified: head/sys/kern/kern_proc.c
==============================================================================
--- head/sys/kern/kern_proc.c Tue Dec 6 06:28:32 2011 (r228301)
+++ head/sys/kern/kern_proc.c Tue Dec 6 06:40:14 2011 (r228302)
@@ -2457,7 +2457,7 @@ sysctl_kern_proc_ps_strings(SYSCTL_HANDL
p = pfind((pid_t)name[0]);
if (p == NULL)
return (ESRCH);
- error = p_cansee(curthread, p);
+ error = p_candebug(curthread, p);
if (error != 0) {
PROC_UNLOCK(p);
return (error);
More information about the svn-src-head
mailing list