You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(tests): drop backup privileges for denied parent watch - #6629
Fixes the Windows guest_kqueueDeniedParentWatch test failing when run with elevated privileges.
Windows backup and restore privileges can bypass the restrictive directory permissions used by the test. The fix removes these privileges before the permission check.
Only Windows-specific test code is changed. Production emulator behaviour is unaffected.
Full credit to @frankea for diagnosing the issue, developing the original patch and performing initial validation in #6597. This PR carries their proposed fix forward.
Tested
Independent validation is still required before merging.
Confirmed the fix was committed and verified the privilege-removal call in the committed source.
@frankea reported 3/3 successful elevated Windows 11 test runs with the original patch.
@frankea reported a successful conventions check on their original branch.
Not independently tested for this PR:
Windows compilation and runtime tests.
Non-elevated Windows execution.
Linux regression tests.
Full project build and test suite.
Conventions checker on this PR branch.
The original contributor's results do not constitute independent validation of this submission.
Checklist
Based on upstream main source; no overlapping open PR identified during review
One topic per PR; follow-ups go in a new PR
No comments in code except technical debt
No changes to unimplemented paths or silent stubs
No investigation notes, Markdown files or images added
Thanks for carrying the fix forward and crediting @frankea. I noticed this branch is currently DIRTY against main, and its diff adds all 622 lines of GuestKqueue.cpp; current main already has the 605-line file, and #6599 applies the same privilege change as a 17-line addition. The conventions check is also currently failing on this PR. Rebasing onto current main should make the intended delta and checks easier to review.
For coordination, #6599 is open with the same DropBackupPrivileges() change. It has a MinGW GCC 12 warning-clean compile; @harmsluis has since reported 3/3 non-elevated Windows runs on both main and #6599, while the elevated 3/3 result is the original report in #6597. I’m leaving both PRs open; once your branch is rebased, we can compare the final diffs and let the maintainers choose which submission to land.
This change is identical to the privilege helper already in my open PR #6599 (same GuestKqueue.cpp diff). #6599 has since received independent Windows 11 non-elevated validation (3/3 passes), and I fixed its Windows test PATH setup. Please coordinate with #6599/maintainers on which PR should carry the fix so the duplicate does not need separate review; I am not asking for priority. The elevated 3/3 report remains in issue #6597.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
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
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.
What
Fixes #6597.
Fixes the Windows
guest_kqueueDeniedParentWatchtest failing when run with elevated privileges.Windows backup and restore privileges can bypass the restrictive directory permissions used by the test. The fix removes these privileges before the permission check.
Only Windows-specific test code is changed. Production emulator behaviour is unaffected.
Full credit to @frankea for diagnosing the issue, developing the original patch and performing initial validation in #6597. This PR carries their proposed fix forward.
Tested
Independent validation is still required before merging.
Not independently tested for this PR:
The original contributor's results do not constitute independent validation of this submission.
Checklist
mainsource; no overlapping open PR identified during reviewValidation remains pending. The PR author is responsible for the submitted changes.