kernel: Fixup KERN_PROC_PATHNAME sysctl
authorMarkus Pfeiffer <markus.pfeiffer@morphism.de>
Sun, 9 Mar 2014 01:15:10 +0000 (01:15 +0000)
committerMarkus Pfeiffer <markus.pfeiffer@morphism.de>
Sun, 9 Mar 2014 01:15:10 +0000 (01:15 +0000)
commit35c7df0f4f27546af06ca79739de2787af052ad5
tree9e356be9c61084f54548704bd3f565a69db4325a
parentc9bda9e78d9ed14cd9268f2914f8a39f2f09180c
kernel: Fixup KERN_PROC_PATHNAME sysctl

The code for the sysctl uses pfind, which PHOLDs the process
if a pid is passed to the sysctl, so we PRELE the process
if necessary.
sys/kern/kern_proc.c