Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
neild opened this issue Mar 27, 2025 · 1 comment
Open

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

neild opened this issue Mar 27, 2025 · 1 comment
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-FreeBSD Performance

Comments

@neild
Copy link
Contributor

neild commented Mar 27, 2025

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.

@gabyhelp
Copy link

Related Issues

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

@gabyhelp gabyhelp added the LibraryProposal Issues describing a requested change to the Go standard library or x/ libraries, but not to a tool label Mar 27, 2025
@dmitshur dmitshur added OS-FreeBSD NeedsFix The path to resolution is known, but the work has not been done. Performance labels Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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-FreeBSD Performance
Projects
None yet
Development

No branches or pull requests

3 participants