fix(tests): drop backup privileges for denied parent watch #6629
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6629"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by srgtcauliflour on 2026-10-15T23:48:05Z.
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.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-15T23:51:34Z.
Thanks for carrying the fix forward and crediting @frankea. I noticed this branch is currently
DIRTYagainstmain, and its diff adds all 622 lines ofGuestKqueue.cpp; currentmainalready 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 currentmainshould 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.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T00:12:48Z.
This change is identical to the privilege helper already in my open PR #6599 (same
GuestKqueue.cppdiff). #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.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T00:59:44Z.
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.
core/libs/tests/GuestKqueue.cppcore/libs/tests/GuestKqueue.cppImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-17T00:03:16Z.
Closing in favour of #6599, which was opened first with the same patch for #6597. If something here is missing from it, say so on #6599.
Pull request closed