jeremy observed that access() on unveiled space was returning errors
authorderaadt <deraadt@openbsd.org>
Sat, 31 Aug 2024 15:52:09 +0000 (15:52 +0000)
committerderaadt <deraadt@openbsd.org>
Sat, 31 Aug 2024 15:52:09 +0000 (15:52 +0000)
commit4d0caa417ef788ae46f25708d7c20334cfb8c596
treee2821d2b9b1625476b67cdd842023b8a9dbe929c
parent76b4b18fa2c7545d6f8cf3db1baea206b6747a22
jeremy observed that access() on unveiled space was returning errors
for valid requests.  This is because the nd.ni_unveil to namei() was
always UNVEIL_READ, regardless of the request amode.  Building a
correct ni_unveil passes a new regression test, producing expected
results.
ok beck jeremy
sys/kern/vfs_syscalls.c