Skip to content
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

[wip] port SecureJoin to partialLookupInRoot #14

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cyphar
Copy link
Owner

@cyphar cyphar commented Jun 30, 2024

This is based on #13 and is mostly a proof-of-concept to show how partialLookupInRoot can be adapted to implement SecureJoin.

Note that due to the different semantics, there are test failures when dealing with dangling symlinks. I'm not quite sure what we should do for those (emulating them using partialLookupInRoot would get quite expensive -- especially when using openat2). And obviously we can only switch the implementation on Linux because partialLookupInRoot is Linux-only.

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