Repository navigation
fix: block macOS firmlink alias paths in File System Access blocklist - #54679
Merged
Merged
Conversation
…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
ckerr
approved these changes
Oct 7, 2026
2 tasks done
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MtuMgvwAcw7t9Q6HEB31Vx
1 of 3 tasks
… firmlink spec Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MtuMgvwAcw7t9Q6HEB31Vx
MarshallOfSound
approved these changes
Oct 10, 2026
|
Release Notes Persisted
|
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested via Slack
Description of Change
Chromium 156.0.8078.3 on
mainalready contains the upstream File System Access blocklist fix for macOS firmlink alias paths (CL 8410087, upstream64c8e2a1ceda). However,refactor_expose_file_system_access_blocklist.patch, which exposes the blocklist helpers to Electron, re-adds the oldNormalizeFilePath()/GenerateBlockPaths()in the header without that fix. Electron's ownShouldBlockAccessToPath()also never used the new normalization. As a result, paths spelled through/System/Volumes/Datacan bypass blocked directories on macOS. The first commit updates the header copy in that patch to match upstream. It adds theMaybeStripMacDataVolumePrefix()/NormalizeFilePathForBlocklist()static helpers and the/System/Volumesblock rule, and normalizes the generated rules through the new helper. The second commit switches Electron's matcher toNormalizeFilePathForBlocklist(). 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 --checkagainst the header at 156.0.8078.3.Note
This PR changes
shell/browser/file_system_access/file_system_access_permission_context.ccoutsidepatches/(its own commit):ShouldBlockAccessToPath()now callsChromeFileSystemAccessPermissionContext::NormalizeFilePathForBlocklist()instead ofNormalizeFilePath(). Upstream: CL 8410087, upstream commit64c8e2a1cedafdbcc750abc423ad9b389537c223.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.