Paranoia: check KTRPOINT() before calling ktrpledge() to guarantee we
authorguenther <guenther@openbsd.org>
Sun, 10 Jul 2016 00:39:23 +0000 (00:39 +0000)
committerguenther <guenther@openbsd.org>
Sun, 10 Jul 2016 00:39:23 +0000 (00:39 +0000)
commit3b974249645d1c42e81d425cabb594f45360d5f7
tree152feed27a2e2f25ee54fdbb8e9ec21f1959f201
parentddfba94c91b7e28489d9eedf50e213622828033d
Paranoia: check KTRPOINT() before calling ktrpledge() to guarantee we
can't (in the future) loop from ktrace writing hitting a pledge condition.

diff from Michal Mazurek (akfaew (at) jasminek.net)
sys/kern/kern_pledge.c