os: os.Root: use openat2 with RESOLVE_BENEATH on Linux #73077
Labels
LibraryProposal
Issues describing a requested change to the Go standard library or x/ libraries, but not to a tool
NeedsFix
The path to resolution is known, but the work has not been done.
OS-Linux
Performance
Linux's
openat2
syscall with theRESOLVE_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.The text was updated successfully, but these errors were encountered: