Index: sys/kern/vfs_lookup.c =================================================================== --- sys/kern/vfs_lookup.c +++ sys/kern/vfs_lookup.c @@ -1423,6 +1423,12 @@ return (0); } + /* Do nothing when chrooted or jailed. */ + if (td->td_proc->p_fd->fd_rdir != rootvnode) { + bcopy(ptr, buf, len); + return (0); + } + /* * We know that there is a / somewhere in this pathname. * Search backwards for it, to find the file's parent dir