Skip to content

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

Merged
jkleinsc merged 5 commits into
45-x-yfrom
security-backport/45-x-y/fsa-firmlink
Oct 14, 2026
Merged

jkleinsc merged 5 commits into
45-x-yfrom
security-backport/45-x-y/fsa-firmlink

Conversation

@claude

@claude claude Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

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/Data can no longer bypass blocked directories such as ~/.ssh or ~/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.patch deletes that code from chrome_file_system_access_permission_context.cc and re-adds NormalizeFilePath()/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 the MaybeStripMacDataVolumePrefix()/NormalizeFilePathForBlocklist() static helpers, the /System/Volumes block rule, and the normalization of the generated rules. The .cc part 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.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 macOS File System Access blocklist bypass via /System/Volumes/Data paths.

claude added 2 commits October 6, 2026 22:55
…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
@claude claude Bot added 45-x-y backport-check-skip Skip trop's backport validity checking security 🔒 semver/patch backwards-compatible bug fixes labels Oct 6, 2026
@claude

claude Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

linux-x64-ubsan / test / test (linux, 1) failed on one spec, webview.spec.ts:231 ("follows the embedder window when it is hidden and shown again"), at its first assertion: the freshly created embedder window reported hidden before the test ever hid it. This PR only touches the File System Access blocklist patch and shell/browser/file_system_access/, nothing in the failure involves that code, ubsan shards 2 and 3 passed on this head, and the same shard is green on the 45-x-y base and on #54664. I'll re-run the failed job once the rest of this workflow run finishes; a second failure would make it real.


Generated by Claude Code

@claude

claude Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

linux-x64-asan / test / test (linux, 3) also failed on a single unrelated spec: api-corner-smoothing.spec.ts:116 ("matches the reference with web preference = true") did not match its reference image. That shard runs no File System Access specs, nothing in its log touches the blocklist code, and the same shard is green on the 45-x-y base and #54664. It'll be included in the one re-run of failed jobs once the macOS shards finish.


Generated by Claude Code

@claude
claude Bot marked this pull request as ready for review October 7, 2026 14:31
@claude
claude Bot requested a review from a team as a code owner October 7, 2026 14:31

@ckerr ckerr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Prompt: /code-review xhigh https://github.com/electron/electron/pull/54678 on Opus 5.5 xhigh

Findings reviewed by me, a human 👋 😃

@ckerr ckerr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Re-review after 2e006ba and e0d38fc: both addressed, and the new spec passes on macOS CI. Two small follow-ups on the spec below.

Prompt: /code-review xhigh re-review on Opus 5.5 xhigh; published without human proofreading.

Comment thread spec/chromium.spec.ts Resolved
Comment thread spec/chromium.spec.ts Resolved
@jkleinsc
jkleinsc merged commit 8bd7d23 into 45-x-y Oct 14, 2026
95 checks passed
@release-clerk

release-clerk Bot commented Oct 14, 2026

Copy link
Copy Markdown

Release Notes Persisted

Fixed a macOS File System Access blocklist bypass via /System/Volumes/Data paths.

@jkleinsc
jkleinsc deleted the security-backport/45-x-y/fsa-firmlink branch October 14, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

45-x-y backport-check-skip Skip trop's backport validity checking security 🔒 semver/patch backwards-compatible bug fixes

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

4 participants