reorder some checks in pledge_namei() in order to properly work.
authorsemarie <semarie@openbsd.org>
Sun, 25 Oct 2015 11:09:28 +0000 (11:09 +0000)
committersemarie <semarie@openbsd.org>
Sun, 25 Oct 2015 11:09:28 +0000 (11:09 +0000)
commit9c625b88fb508a1e8cb760c9de1219d201d42970
tree3fc621e82cae333b14c272dc07cab798df75b7bf
parent65d995a8e982effc5ac4dc4433d121ce753a92c1
reorder some checks in pledge_namei() in order to properly work.

mainly move read/write whitelisted paths that should be *before* checking if
you have PLEDGE_WPATH.

with and ok deraadt@
sys/kern/kern_pledge.c