Skip to content

Evaluate access rules for groups in the access token and honor deny e… - #18381

Merged
ylangisc merged 1 commit into
masterfrom
bugfix/GH-18380-ACLs
Aug 21, 2026
Merged

ylangisc merged 1 commit into
masterfrom
bugfix/GH-18380-ACLs

Conversation

@ylangisc

Copy link
Copy Markdown
Contributor

…ntries determining permissions.

Access rules were previously only matched against the SID of the current user, denying access for files granted through group membership only. Deny entries are now subtracted from allowed rights prior to mapping to permission actions.

Fix #18380

…ntries determining permissions.

Access rules were previously only matched against the SID of the current user, denying
access for files granted through group membership only. Deny entries are now subtracted
from allowed rights prior to mapping to permission actions.

Fix #18380
@ylangisc
ylangisc requested a review from a team as a code owner August 20, 2026 19:01
Copilot AI lite review requested due to automatic review settings August 20, 2026 19:01
@ylangisc ylangisc added this to the 9.5.4 milestone Aug 20, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Windows local permission preflight logic to correctly derive effective read/write/execute actions from NTFS ACLs when access is granted via group membership and when Deny ACEs are present, addressing the incorrect Access denied failures described in #18380.

Changes:

  • Match ACL entries against both the current user SID and all group SIDs in the current access token.
  • Track accumulated Allow and Deny rights and compute effective rights by subtracting denied from allowed prior to mapping to Permission.Action.
  • Preserve the existing read-only attribute behavior by removing write from the resulting action set.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@ylangisc
ylangisc merged commit 0e790f7 into master Aug 21, 2026
8 checks passed
@ylangisc
ylangisc deleted the bugfix/GH-18380-ACLs branch August 21, 2026 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Access denied for files on local disk when access is granted through group membership only

3 participants