Call realpath(3) in combination with chroot(2) and chdir(2).Use umount(8) to check that the mountpoint leaks no vnode.from Moritz Buhl