Linux's `openat2` syscall with the `RESOLVE_BENEATH` flag opens a file within some root directory. We should use it when available. `openat2` is only supported since Linux 5.6, so we'll still need a fallback on older versions.
Linux's
openat2syscall with theRESOLVE_BENEATHflag opens a file within some root directory. We should use it when available.openat2is only supported since Linux 5.6, so we'll still need a fallback on older versions.