Skip to content

*: minor improves to fd-at syscall usage #210

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

Merged
merged 3 commits into from
Jul 9, 2025
Merged

Conversation

cyphar
Copy link
Owner

@cyphar cyphar commented Jul 9, 2025

Signed-off-by: Aleksa Sarai [email protected]

cyphar added 3 commits July 9, 2025 17:08
rustix 1.0 added support for -EBADF as a RawFd value (rustix::fs::ABS),
but HotfixRustixFd would still return an error if you tried to use it
(meaning that BADFD didn't actually work for our syscalls).

Also, rustix has only allow-listed AT_FDCWD and -EBADF -- all other
dirfd values will still cause panics. So this "hotfix" is going to
basically be permanent, and so we should rename this to something that
other than "hotfix".

Signed-off-by: Aleksa Sarai <[email protected]>
@cyphar cyphar merged commit 6a985b2 into cyphar:main Jul 9, 2025
50 checks passed
@cyphar cyphar deleted the minor-fdat branch July 9, 2025 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant