-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
chmod:fix safe traversal/access #9554
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
Changes from 2 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
f56412c
feat(chmod): use dirfd for recursive subdirectory traversal
mattsu2020 2ab13b5
test(chmod): add spell-check ignore for dirfd, subdirs, openat, FDCWD
mattsu2020 232ad27
test(chmod): enforce strace requirement in recursive test, fail fast …
mattsu2020 3335055
ci: install strace in Ubuntu CI jobs for debugging system calls
mattsu2020 41cc13e
ci: Add strace installation to Ubuntu-based CI workflows
mattsu2020 ce63d1d
chore(build): install strace and prevent apt prompts in Cross.toml pr…
mattsu2020 d0cda8d
feat(build): support Alpine-based cross images in pre-build
mattsu2020 266cdd8
refactor(build): improve pre-build script readability by using multi-…
mattsu2020 1e1d982
feat(ci): install strace in WSL2 GitHub Actions workflow
mattsu2020 91246f6
ci(wsl2): install strace as root with non-interactive apt-get
mattsu2020 57520c0
ci: Move strace installation to user shell and update spell ignore
mattsu2020 09dae13
chore: ci: remove unused strace installation from CI workflows
mattsu2020 4ce6cd1
ci: add strace installation and fix spell-checker comments in CI files
mattsu2020 6ce14f1
test: add regression guard for recursive chmod dirfd-relative traversal
mattsu2020 d950e93
Merge branch 'main' into chmod_fix
mattsu2020 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
https://github.com/uutils/coreutils/blob/main/util/check-safe-traversal.sh isn't better ?
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.
Whether to guarantee the detailed condition of “safely traversing while holding directory FD”
Otherwise, using scripts is not a problem.
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.
the issue with the current test is that we aren't never certain that it will fail :)
as it is skipped easily