Repository navigation
fix(windows): report the ACE count a private DACL check observed - #10319
liziye627-design wants to merge 5 commits into
Conversation
The trustee failure always attached Win32 5, so a count other than two could not be told apart from a later SID mismatch. 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; it adds failure details without weakening the private-DACL checks. SummaryAdds
Reviews (5) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · Reviewed by Greptile |
EqualSid cannot accept the const SID bytes from a const security object, so the addon build stopped before it could report the ACE count. 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. |
|
Superseded by #14450 on a clean single-commit branch over current main. |
Summary
Reports the ACE count, protected bit, and whether the process token user is SYSTEM when a private DACL trustee check fails. The check still requires exactly two ACEs and still fails closed. It does not print SIDs.
Related to #5237. This does not close it: the host failure is not reproduced or repaired, and the installed addon digest is not added.
Problem and expected behavior
inspect-android-packageon the reported Windows host stops in the native self-test withPrivate DACL contains unexpected trusteesandWin32 5. That 5 is the constant passed with the failure. At the 6.5.0 source, that sentence is only theAceCount != 2guard, before any SID is compared. A later SID mismatch uses a different sentence. Neither sentence records the count, the protected bit, or whether the token user is SYSTEM.Change and scope
The three existing trustee failures now append
ace_count,protected, andtoken_user_equals_system. The helper takesSecurity&soEqualSidcan read the system SID under MinGW without dropping const. The pass/fail conditions andERROR_ACCESS_DENIEDstay the same. No SID, ACE mask, or path beyond the existing failure path is added.Not included: changing DACL creation, accepting another ACE count, hashing the installed
.node, or the separate protected-DACL sentence tracked by #9182. Contribution scope: not applicable. That sentence is #10318 and edits the same function, so the two pulls will conflict.Contract and boundary impact
native/windowsverifyPrivate, at the existing trustee guards. Consumers see a longer failure string and the same Win32 code.inspect-android-packagecan 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 oldrequireforAceCount == 2always attachedERROR_ACCESS_DENIEDand did not record the count.ace_count=protected=token_user_equals_system=.Boundary and lifecycle regressions: not applicable. The check's pass/fail outcome is unchanged.
Validation performed
npm run check:fastduring the first push — passed from cache in 316ms. That cache does not compile the native addon.6df0f31ea— 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.