Get rid of PLEDGE_STAT, which was a hack used for unveil.
authorbeck <beck@openbsd.org>
Sat, 11 Aug 2018 16:16:07 +0000 (16:16 +0000)
committerbeck <beck@openbsd.org>
Sat, 11 Aug 2018 16:16:07 +0000 (16:16 +0000)
commit9dfd71d84e7615be3460d3218da4f57cd1899dd3
tree1284f546d3ecf13171aa46954d02564bfadea0f5
parent1ceb7bbbc051f457292791fc92bf46ec779fe19d
Get rid of PLEDGE_STAT, which was a hack used for unveil.
We use UNVEIL_INSPECT instead in the unveil flags for the same
purpose, and now add traversed vnodes of a path with UNVEIL_INSPECT
instead of with 0 flags and voodoo in unveil_flagmatch. This
allows us to uncontort the logic of unveil_flagmatch a bunch.
helpful review and ok from semarie@
sys/kern/kern_pledge.c
sys/kern/kern_unveil.c
sys/kern/vfs_syscalls.c
sys/sys/namei.h
sys/sys/pledge.h