Skip to content

os: os.Root: use openat2 with RESOLVE_BENEATH on Linux #73077

Open
@neild

Description

@neild

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    LibraryProposalIssues describing a requested change to the Go standard library or x/ libraries, but not to a toolNeedsFixThe path to resolution is known, but the work has not been done.OS-LinuxPerformance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions