CVSROOT:        /cvs
Module name:    src
Changes by:     b...@cvs.openbsd.org    2019/09/11 09:01:40

Modified files:
        regress/sys/kern/unveil: syscalls.c 
        sys/kern       : kern_unveil.c vfs_lookup.c 
        sys/sys        : namei.h 

Log message:
Fix unveil for relative lookups in the non AT_FDCWD case

Issue spotted by Benjamin Baier <program...@netzbasis.de> with relative
path lookups from openat(2). Lacking a current working directory unveil,
operations using the *at functions could fail when not crossing an unveil,
since an initial covering unveil was not found.

This corrects this so we walk up from the directory vnode to find a
covering unveil at the start of non AT_FDCWD lookups, and adds regress
for this case.

ok bluhm@

Reply via email to