Repository navigation
feat(core): harden the Unix file removal against a same-user actor in the quarantine directory (#445) #1072
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
Closed
Closed
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
03ad9ac
feat(core): remove only the object that was authenticated, test-suppo…
qnbs b60dc60
refactor(core): cut the bound removal down to its API and its isolati…
qnbs be6136b
feat(core): remove a file on Unix by moving it aside and identifying …
qnbs 1226db1
test(core): keep the swap table of the put-back test in a function of…
qnbs d547945
Merge remote-tracking branch 'origin/main' into feat/445-gate4e-h1a2-…
qnbs eb9eb87
fix(core): sync after a rollback, keep the cleanup bound to the direc…
qnbs 54dcf08
fix(core): sync what the removal changed in every outcome, state the …
qnbs 60d6db2
fix(core): report a quarantine that was renamed away, sync a failed m…
qnbs 586f663
refactor(core): move the hardening of the Unix file removal into its …
qnbs 30882e5
feat(core): harden the Unix file removal against a same-user actor in…
qnbs 0b42f3f
Merge remote-tracking branch 'origin/main' into feat/445-gate4e-h1a2-…
qnbs fe7158e
fix(core): report a missing quarantine entry as disturbed, sync the h…
qnbs e39e837
fix(core): check the identity of a retained entry, sync the held quar…
qnbs aff1678
fix(core): sync the quarantine directory after a put-back and report …
qnbs ae96312
fix(core): sync the quarantine directory for an entry found gone, che…
qnbs 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
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.
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.
When a same-user actor replaces the checked quarantine with an empty directory between
identity_atand the name-basedunlinkat,remove_if_namedcan remove that replacement, so this release note's “only if” statement overstates the preservation guarantee. Fresh evidence after the earlier finding is that the final changelog still makes the absolute claim even though the code and evidence document now acknowledge that the identity check only narrows the race; qualify this summary the same way.AGENTS.md reference: AGENTS.md:L29-L30
Useful? React with 👍 / 👎.
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.
Valid, wording only.
remove_if_namedchecks the identity and then callsunlinkatby name, so a swap between the two can still remove an empty replacement directory. The code comment and the evidence document say the check narrows the race and does not close it; this CHANGELOG line still says "only if".Not fixed on this head: the PR is at 15 of 15 commits (budget
SATURATED), and a 16th commit is not allowed. The thread is left unresolved on purpose. The wording belongs in the next change that touches this entry (or in a clean successor), which is the maintainer's call; I will not describe it as fixed before a commit exists.