Skip to content

fix: block macOS firmlink alias paths in File System Access blocklist - #54679

Merged
MarshallOfSound merged 4 commits into
mainfrom
security-fix/main/fsa-firmlink
Oct 10, 2026
Merged

MarshallOfSound merged 4 commits into
mainfrom
security-fix/main/fsa-firmlink

Conversation

@claude

@claude claude Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Requested via Slack

Description of Change

Chromium 156.0.8078.3 on main already contains the upstream File System Access blocklist fix for macOS firmlink alias paths (CL 8410087, upstream 64c8e2a1ceda). However, refactor_expose_file_system_access_blocklist.patch, which exposes the blocklist helpers to Electron, re-adds the old NormalizeFilePath()/GenerateBlockPaths() in the header without that fix. Electron's own ShouldBlockAccessToPath() also never used the new normalization. As a result, paths spelled through /System/Volumes/Data can bypass blocked directories on macOS. The first commit updates the header copy in that patch to match upstream. It adds the MaybeStripMacDataVolumePrefix()/NormalizeFilePathForBlocklist() static helpers and the /System/Volumes block rule, and normalizes the generated rules through the new helper. The second commit switches Electron's matcher to NormalizeFilePathForBlocklist(). The same change is in #54666 (44-x-y), #54668 (42-x-y), #54677 (43-x-y) and #54678 (45-x-y).

This was not built locally; CI is the build gate. The updated patch was checked with git apply --check against the header at 156.0.8078.3.

Note

This PR changes shell/browser/file_system_access/file_system_access_permission_context.cc outside patches/ (its own commit): ShouldBlockAccessToPath() now calls ChromeFileSystemAccessPermissionContext::NormalizeFilePathForBlocklist() instead of NormalizeFilePath(). Upstream: CL 8410087, upstream commit 64c8e2a1cedafdbcc750abc423ad9b389537c223.

Checklist

🤖 Generated with Claude Code

https://claude.ai/code/session_01MtuMgvwAcw7t9Q6HEB31Vx


Generated by Claude Code

Release Notes

Notes: Fixed a File System Access blocklist bypass on macOS.

claude added 2 commits October 6, 2026 23:05
…cklist

Chromium 156.0.8078.3 already contains upstream 64c8e2a1ceda ("[FSA] Block
macOS firmlink alias paths to sensitive directories"), but
refactor_expose_file_system_access_blocklist.patch re-adds
NormalizeFilePath()/GenerateBlockPaths() as static members in the header
without the new pieces, so Electron's copy of the blocklist does not carry
the fix.

Update the patch's header copy to match upstream: add the
MaybeStripMacDataVolumePrefix() and NormalizeFilePathForBlocklist() static
helpers, the /System/Volumes kBlockAllChildren rule, and normalize
generated rules through NormalizeFilePathForBlocklist().

Refs https://chromium-review.googlesource.com/c/chromium/src/+/8410087 (upstream commit 64c8e2a1cedafdbcc750abc423ad9b389537c223)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01MtuMgvwAcw7t9Q6HEB31Vx
…klist checks

Switches Electron's copy of ShouldBlockAccessToPath() to the
NormalizeFilePathForBlocklist() helper (from upstream 64c8e2a1ceda, exposed
in the header by the companion refactor_expose_file_system_access_blocklist
patch update), so paths spelled via /System/Volumes/Data are matched
against the root-namespace blocklist rules the same way Chrome does.

Refs https://chromium-review.googlesource.com/c/chromium/src/+/8410087 (upstream commit 64c8e2a1cedafdbcc750abc423ad9b389537c223)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01MtuMgvwAcw7t9Q6HEB31Vx
@claude claude Bot added no-backport security 🔒 semver/patch backwards-compatible bug fixes labels Oct 6, 2026
@claude
claude Bot marked this pull request as ready for review October 7, 2026 14:32
@claude
claude Bot requested a review from a team as a code owner October 7, 2026 14:32
@MarshallOfSound
MarshallOfSound enabled auto-merge (squash) October 10, 2026 11:36
@MarshallOfSound
MarshallOfSound merged commit 04449e9 into main Oct 10, 2026
76 checks passed
@MarshallOfSound
MarshallOfSound deleted the security-fix/main/fsa-firmlink branch October 10, 2026 11:36
@release-clerk

release-clerk Bot commented Oct 10, 2026

Copy link
Copy Markdown

Release Notes Persisted

Fixed a File System Access blocklist bypass on macOS.

claude Bot pushed a commit that referenced this pull request Oct 10, 2026
Resolved the conflict in
patches/chromium/refactor_expose_file_system_access_blocklist.patch in favour
of this branch's split version, which already carries the firmlink handling
from #54679 in chrome_file_system_access_blocklist.cc.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01MtuMgvwAcw7t9Q6HEB31Vx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants