CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2026/03/12 18:42:53
Modified files:
sys/kern : kern_unveil.c
Log message:
Fix unveil to handle a mount point on a mount point
When traversing upward to find a covering unveil, we always
looked to ascend in the mount point filesystem when we encounter
the root of a mounted filesystem.
We missed the case where the mount point was also the root
of another mounted filesystem, causing us to then fail to ascend,
potentially not finding an unveil above that point.
Found by naddy by mounting an mfs /usr/obj on /usr/obj which
was also a mounted filesystem, which then missed the unveil
in "/".
testing naddy, me and others,
ok deraadt@