Repository navigation
fix: enforce File System Access .git/hooks write block and hypervisor UNC shares (45-x-y) - #55329
Merged
Merged
Conversation
… shares Electron's copy of ShouldBlockAccessToPath() never consulted suffix_block_path_rules_, so Chrome's kBlockWrite rule for */.git/hooks was not enforced. Match Chrome 156's matcher: plumb the AccessTrigger into the blocklist check, apply kBlockWrite rules only for AccessTrigger::kSave and AccessTrigger::kProgrammaticWrite, and evaluate suffix rules with case-insensitive component matching. Also port IsLocalUNCServer() so that hypervisor host-share UNC servers (\\Mac, \\psf, \\vmware-host, \\.host, \\vboxsvr, \\vboxsrv) and trailing-dot server names are treated as local UNC paths on Windows. Upstream: - https://chromium-review.googlesource.com/c/chromium/src/+/8361594 - https://chromium-review.googlesource.com/c/chromium/src/+/8376681 - https://chromium-review.googlesource.com/c/chromium/src/+/8405125 - https://chromium-review.googlesource.com/c/chromium/src/+/8424981 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MtuMgvwAcw7t9Q6HEB31Vx
Contributor
Author
|
The latest run on f67bfea (40368102471) has one red job, and it isn't caused by this PR. It passed on re-run.
The asan, ubsan/js2c, Generated by Claude Code |
MarshallOfSound
approved these changes
Oct 26, 2026
…klist Shares a fixture directory over loopback SMB and pastes it under different UNC server and share names, checking that local server names (127.0.0.1, and a trailing-dot localhost when it resolves) and shares ending in '$', including drive admin shares, are blocked while other servers are not. The trailing-dot case pins down the intentional change from Electron's previous matcher. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MtuMgvwAcw7t9Q6HEB31Vx
ckerr
approved these changes
Oct 26, 2026
jkleinsc
approved these changes
Oct 26, 2026
|
Release Notes Persisted
|
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.
This is the 45-x-y counterpart of #55328. Electron's own copy of Chrome's File System Access path matcher never checked the suffix rules, so Chrome's
kBlockWriterule for.git/hookswas not enforced, and it did not treat the hypervisor host-share UNC servers (mac,psf,vmware-host,.host,vboxsvr,vboxsrv) or trailing-dot server names as local. Unlike main, which switches Electron to upstream's matcher, this branch keeps Electron's own matcher and makes the smaller change of adding the missing checks. Following CL 8361594, CL 8376681, CL 8405125,kBlockWriterules now apply to save-picker and programmatic write operations and suffix components are compared case-insensitively; the UNC server handling follows CL 8424981. A new spec inspec/chromium.spec.tscovers the.git/hookswrite block and checks that reading it stays allowed.🤖 Generated with Claude Code
https://claude.ai/code/session_01MtuMgvwAcw7t9Q6HEB31Vx
Generated by Claude Code
Notes: Fixed File System Access blocklist gaps for
.git/hookswrites and hypervisor UNC shares.