OpenBSD/src l0Uz1izregress/sys/kern/unveil syscalls.c, sys/kern kern_unveil.c vfs_syscalls.c

   Make stat(2) and access(2) need UNVEIL_READ instead of UNVEIL_INSPECT

   UNVEIL_INSPECT is a hack we added to get chrome/glib working. It silently
   adds permission for stat(2), access(2), and readlink(2) to be used on
   all path components of any unveil'ed path. robert@ has sucessfully now
   fixed chrome/glib to not require exessive TOC vs TOU stat(2) and access(2)
   calls on the paths it uses,  so that this no longer needed there.

    readlink(2) is the sole call that is now permitted by UNVEIL_INSPECT,
   and this is only needed so that realpath(3) can work. Going forward we will
   likely make a realpath(2), after which we can completely deprecate
   UNVEIL_INSPECT.

   ok deraadt@
VersionDeltaFile
1.22+11-11regress/sys/kern/unveil/syscalls.c
1.24+7-2sys/kern/kern_unveil.c
1.314+3-3sys/kern/vfs_syscalls.c
+21-163 files

UnifiedSplitRaw