Skip to content

os: os.Root: use O_RESOLVE_BENEATH on FreeBSD #73078

@neild

Description

@neild

FreeBSD's openat supports an O_RESOLVE_BENEATH flag which limits path resolution to occur within the starting directory. We should use it when available.

I'm not sure when O_RESOLVE_BENEATH was added; we may need to support a fallback on older FreeBSDs.

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-FreeBSDPerformance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions