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:
parent
336f459c31
commit
9e94d5b83f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user