CVSROOT:        /cvs
Module name:    src
Changes by:     b...@cvs.openbsd.org    2019/03/24 12:14:21

Modified files:
        sys/kern       : kern_unveil.c vfs_syscalls.c 
        regress/sys/kern/unveil: syscalls.c 

Log message:
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@

Reply via email to