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

Add Dir::{read_link_contents,symlink_contents} methods #356

Merged
merged 1 commit into from
May 16, 2024

Conversation

asomers
Copy link
Contributor

@asomers asomers commented May 15, 2024

These allow creating and readling symlinks whose target may be an absolute path. There is no security risk because security is as always provided by the OS; the OS's openat implementation will refuse to follow a symlink whose target is an absolute path.

Fixes #354

These allow creating and readling symlinks whose target may be an
absolute path.  There is no security risk because security is as always
provided by the OS; the OS's openat implementation will refuse to follow
a symlink whose target is an absolute path.

Fixes bytecodealliance#354
@sunfishcode
Copy link
Member

Looks good, thanks!

@sunfishcode sunfishcode merged commit 3340b14 into bytecodealliance:main May 16, 2024
22 checks passed
@sunfishcode
Copy link
Member

This is now published in cap-std 3.1.0.

@asomers asomers deleted the read_link_contents branch May 16, 2024 23:47
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.

2 participants