Really protect kern.proc.ps_strings sysctls with p_candebug(). This

was intended to be in r228288.

Spotted by:	many
MFC after:	1 week
This commit is contained in:
Mikolaj Golub 2011-12-06 06:40:14 +00:00
parent 336f459c31
commit 9e94d5b83f

View File

@ -2457,7 +2457,7 @@ sysctl_kern_proc_ps_strings(SYSCTL_HANDLER_ARGS)
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);