On Tue, Feb 20, 2024 at 03:36:05PM +0100, Christian Weisgerber wrote: > hahahahacker2009: > > > I found out that when I mount a mfs over /usr/obj (ffs), and do > > unveil("/usr/obj", "r"), it can still access the file. > > But if I unveil /usr or / the file cannot be accessed. > > Also note that only accessing ./file fails, /path/to/file works.
Smells like the wrong vnode is cached in unveil (underlay /usr/obj and not the mfs root node). -- :wq Claudio