To resolve ".." from the root of a mounted file system, the kernel first steps to the directory on which that file system is mounted, then looks up ".." there. The check for leaving the starting directory compared against the mount point rather than the root of the mounted file system. If the starting directory was itself the root of a mounted file system, the check never matched, and the lookup escaped to the parent of the mount point. A sandboxed process, or a program relying on O_RESOLVE_BENEATH or AT_RESOLVE_BENEATH, whose starting directory is the root of a mounted file system can access any file under its root directory. The descriptor's rights and normal file system permissions still apply. Lookups that start in any other directory are not affected.