Repository navigation
fix: block macOS firmlink alias paths in File System Access blocklist - #54678
Conversation
…cklist
Chromium 156.0.8077.0 already contains upstream 64c8e2a1ceda ("[FSA] Block
macOS firmlink alias paths to sensitive directories"), but
refactor_expose_file_system_access_blocklist.patch deletes that code from
chrome_file_system_access_permission_context.cc and re-adds
NormalizeFilePath()/GenerateBlockPaths() as static members in the header
without the new pieces, so Electron's copy of the blocklist silently lost
the fix when 45-x-y rolled to M156.
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(). The .cc portion
of the patch is unchanged.
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
|
Generated by Claude Code |
|
Generated by Claude Code |
ckerr
left a comment
There was a problem hiding this comment.
Prompt: /code-review xhigh https://github.com/electron/electron/pull/54678 on Opus 5.5 xhigh
Findings reviewed by me, a human 👋 😃
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MtuMgvwAcw7t9Q6HEB31Vx
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MtuMgvwAcw7t9Q6HEB31Vx
… firmlink spec Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MtuMgvwAcw7t9Q6HEB31Vx
|
Release Notes Persisted
|
Requested via Slack
Brings the upstream File System Access blocklist fix for macOS firmlink alias paths (CL 8410087, upstream
64c8e2a1ceda, "[FSA] Block macOS firmlink alias paths to sensitive directories") into Electron's blocklist and switches Electron's own matcher to the new normalization, so paths spelled through/System/Volumes/Datacan no longer bypass blocked directories such as~/.sshor~/Library. The same change already landed on 44-x-y in #54666 and 42-x-y in #54668; the Oct 6 backport for this branch omitted it.On this branch Chromium 156.0.8077.0 already contains
64c8e2a1ceda, so no new cherry-pick is needed. However,refactor_expose_file_system_access_blocklist.patchdeletes that code fromchrome_file_system_access_permission_context.ccand re-addsNormalizeFilePath()/GenerateBlockPaths()in the header without the new pieces, so Electron's copy lost the fix on the M156 roll. The first commit updates only the header part of that patch: it adds theMaybeStripMacDataVolumePrefix()/NormalizeFilePathForBlocklist()static helpers, the/System/Volumesblock rule, and the normalization of the generated rules. The.ccpart of the patch is unchanged.This was not built locally; CI is the build gate.
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 macOS File System Access blocklist bypass via
/System/Volumes/Datapaths.