-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
fix(std/wasi): disallow path_open outside of pre-opened dirfd #8078
fix(std/wasi): disallow path_open outside of pre-opened dirfd #8078
Conversation
wip: working on some warts of path_open
Think I might have stumbled upon a bug with symlinks and/or std/fs/copy. Don't have a windows machine to work on this with so this is very difficult to debug. |
|
I'm appending this new test to the growing list of ignored windows tests for the time being until I get around to provisioning a Windows based server to fix them all. Windows behaviour isn't any worse than it was before this commit, the new tests just make it more obvious that some symlink cases are probably broken on Windows, most likely the test runner itself is at fault. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Disallow path_open to open paths outside of the dirfd that is being accessed.