Remove the unveil current directory pointer from struct process. Instead
authorclaudio <claudio@openbsd.org>
Fri, 16 Jul 2021 07:59:38 +0000 (07:59 +0000)
committerclaudio <claudio@openbsd.org>
Fri, 16 Jul 2021 07:59:38 +0000 (07:59 +0000)
commitdd490a11d064b10ac8c098e27515b9150ef4c257
treeb145fbf5df0e859c198babd95ff90d03fadf177b
parent0d4b15694fa7c6e75a63cfe1d2c7739200d4912c
Remove the unveil current directory pointer from struct process. Instead
pass in the vnode to unveil_start_relative() like it is done for *at()
syscalls. This fixes an issue with fchdir() that actually did not correctly
reset this pointer when changing the working directory.
OK beck@
sys/kern/kern_unveil.c
sys/kern/vfs_lookup.c
sys/kern/vfs_syscalls.c
sys/sys/proc.h