Repository navigation
fix(windows): report the DACL bits a private-object check observed - #10318
liziye627-design wants to merge 5 commits into
Conversation
The self-test named a missing protected DACL and always attached Win32 5, so the readback flags could not be distinguished from the constant. Co-authored-by: Cursor <[email protected]>
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
[Low impact] The PR appears safe to merge; the added diagnostics do not weaken the private-object check. SummaryAdds readback details to the existing Windows private-DACL failure message.
No new actionable issues were found. This review did not rebuild the Windows addon or reproduce the reported host failure. A check for replacement PRs was blocked by missing GitHub authentication. Reviews (5) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · Reviewed by Greptile |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7cc61d3c6b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
The diagnostic compared a newly built descriptor with the object and called those flags supplied, which made a reopen look like Windows had changed the creation input. Co-authored-by: Cursor <[email protected]>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Summary
Reports the DACL flags a private-object check actually read back, and compares them with a freshly built expected policy. The self-test still fails when the protected DACL is absent; this does not change creation, the guard, or Win32 5.
Related to #9182. This does not close it: the host failure remains, and the new text is only the diagnostic the report asked for.
Problem and expected behavior
On the reported Windows 10 host,
doctor --provider ghidrastops in the native self-test withPrivate object requires a present protected DACLandWin32 5. That 5 is the constant passed with the failure, so a missingSE_DACL_PRESENT, a droppedSE_DACL_PROTECTEDbit, and an unexpected ACE count look the same.Change and scope
verifyPrivatekeeps the same guard and the sameERROR_ACCESS_DENIEDcode. When the guard fails, the message now includes readbackpresent,protected,ace_count(orabsent), androot. It then includesexpected_present,expected_protected, anddiffers_from_expected, orexpected_control=unavailablewhen those expected flags cannot be read.Those expected flags come from a new
Securityobject built insideverifyPrivate. They are not the descriptor passed toNtCreateFile, and they are unknown for an object that is only reopened. No SIDs or ACE masks are added.Not included: changing
NtCreateFilesecurity attributes, accepting an unprotected DACL, or treating this host report as reproduced. Contribution scope: not applicable. This stays inside the existing private-object check.Contract and boundary impact
native/windowsverifyPrivate, at the existing readback guard. Consumers see a longer failure string and the same Win32 code.doctorcan surface the longer native self-test line.docs/public/product-catalog.json), package, or installation impact: none.Evidence and regression coverage
native/windows/src/filesystem.ccon54906fdb1. The oldrequirealways attachedERROR_ACCESS_DENIEDand did not record the control bits.readback present=protected=ace_count=root=and then eitherexpected_control=unavailableorexpected_present=expected_protected=differs_from_expected=.SE_DACL_PROTECTEDis dropped atNtCreateFileis still unknown. This machine did not rebuild the addon locally.Boundary and lifecycle regressions: not applicable. The check's pass/fail outcome is unchanged.
Validation performed
npm run check:fastduring the first push — passed (typecheck cached, lint executed, 25.3s). That run did not compile the native addon.2e12ea5ee— conclusion success.Build bundled Windows x64 native controlspassed, andWindows capability and package lanepassed. Source tests, static checks, and all eight test shards passed.PR readinessfailed because the three author declarations below are unchecked.Compatibility, safety, and release
rea-windows-x64.nodedoes not include this string until that addon is rebuilt for release.Author readiness
Human owner: @liziye627-design
Before merge
type(scope): outcome.