-
Notifications
You must be signed in to change notification settings - Fork 1
feat(find): add --help, -type b/c, -perm, -quit; fix access TOCTOU #104
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 all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
9b0577f
feat(find): add --help flag and -type b,c support
matt-dz ec29704
test(find): add tests for -type b,c block/char device support
matt-dz 0a5be0b
feat(find): add 21 GNU find predicates for comprehensive file search
matt-dz 328427b
fix: add new find predicate symbols to the allowlist
matt-dz fb4eb74
[iter 1] Fix review findings: samefile cache, user/group error dedup,…
matt-dz bdfb9fa
[iter 1] Fix Windows CI: add stdout_windows for perm/executable tests
matt-dz 9b4e203
[iter 3] Fix codex review: -perm special bits, -quit as action, -user…
matt-dz 24bff8a
Address codex review: -xdev evaluate before skip, -samefile errors, s…
matt-dz 75da86c
refactor(find): gut low-value predicates, keep only agent-useful flags
matt-dz 33ebf3f
refactor(find): remove -printf — -print and -print0 suffice
matt-dz a37fb20
fix(find): -perm special bits (setuid/setgid/sticky) and symbolic s/t
matt-dz 33b6a22
Address codex review: enable bash parity, remove -H from usage
matt-dz f6b7675
Address codex review: fix symbolic = clearing special bits, add tests
matt-dz 44012c0
fix(find): remove incorrect stdout_windows from perm_any_write test
matt-dz e676125
Address codex review: --help after paths, re-enable bash parity
matt-dz 41e4bdb
docs(find): note unsupported GNU symbolic mode extensions
matt-dz 7fc02fb
Address codex review: revert --help expression scan, fix quit test order
matt-dz c8a8fd1
fix(find): recognize --help after path operands via parsePrimary
matt-dz 084c9f8
fix(find): use non-blocking stat-based readability checks for -readable
matt-dz caa6792
fix(access): preserve root read/write bypass in permission checks
matt-dz 77b0ce3
feat(find): support GNU symbolic mode copy-bits and conditional execu…
matt-dz 45dc6bc
fix(find): add --help to help output, fix Windows perm test failures
matt-dz 79b6055
fix(find): respect who mask when applying symbolic sticky bit
matt-dz 08016dd
Merge branch 'main' of github.com:DataDog/rshell into find-help-and-t…
matt-dz 132af05
fix(access): use kernel access(2) for permission checks instead of mo…
matt-dz 7e0a406
fix(access): guard accessCheck by accepting root + rel separately
matt-dz 9e7299d
fix(access): use OpenFile for Windows read checks, bind accessCheck t…
matt-dz 15b78e6
fix(access): eliminate TOCTOU by keeping all permission checks fd-rel…
matt-dz dd4ec3d
fix(access): open-first with O_NONBLOCK to eliminate Stat→OpenFile TO…
matt-dz 834c08d
fix(find): stop treating -quit as implicit-print suppressor
matt-dz 1ac97c4
fix(ci): deny execute checks on Windows, add golang.org/x/sys to lice…
matt-dz b8cbd93
test: add skip_if_root to scenario framework; guard readable_not_read…
matt-dz ff8acd7
test: guard test_write_denied scenario against root execution
matt-dz de40aaa
feat(find): remove -readable predicate
matt-dz 0df4aea
test: remove root-sensitive test_write_denied scenario
matt-dz bfbe097
test: remove unused SkipIfRoot scenario field
matt-dz f4ae091
test: remove redundant test_exec_check scenario
matt-dz be06e57
fix(test): align Windows execute test with always-deny implementation
matt-dz 24188ba
Merge branch 'main' into find-help-and-type-bc
matt-dz 0402635
fix: check f.Close() errors in accessCheck on Unix and Windows
matt-dz 5ed2876
Merge branch 'main' of github.com:DataDog/rshell into find-help-and-t…
matt-dz d7d90ca
fix(access): restore write checks in Windows accessCheck
matt-dz 79a963a
fix(ci): add missing find symbols to builtins allowlist
matt-dz 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
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.
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.
Uh oh!
There was an error while loading. Please reload this page.