{"version":"2.1.333","anchor":"sandbox-worktree-pointer-read-hardening-and-glabaws-tweaks","canonical_anchor":"sandbox-worktree-pointer-read-hardening-and-glabaws-tweaks","heading":"Sandbox hardens how worktree pointer files are read","tier":"notice","area":"Sandbox","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/sandbox-worktree-pointer-read-hardening-and-glabaws-tweaks","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Sandbox hardens how worktree pointer files are read\n\nThe sandbox now reads git worktree pointer files without following links, checks where they point, and suggests `git worktree repair` when they look wrong\n\n**What**\n\nA git worktree is an extra checkout of a repository in another folder. Its `.git` is a small pointer file saying where the real git data lives. The sandbox, the walled-off area that limits what commands can read and write, now treats these pointer files more carefully:\n\n- Pointer files are read with `O_NOFOLLOW`, so a symbolic link (a file that points to another file) is not followed.\n\n- The `gitdir` and `worktrees` paths are compared to check that they name the same folder.\n\n- When the paths do not spell the real ones, a warning is logged that points you to `git worktree repair`.\n\n- A refusal of a path that goes through a per-process name is also recorded.\n\n- The sandbox setup tracks a new `worktreePointerReadHardeningApplied` state, with a `builtConfigWorktreePointersHardened` cache, alongside the existing worktree and common-dir `.git` guards. It appears to add another rule that blocks reading worktree pointer files.\n\nThe finding's title also mentions small glab and AWS tweaks, which it does not describe.\n\n**Why**\n\nThis tightens the sandbox against link tricks aimed at worktree git data. If you use worktrees and see a warning about paths that do not match, running `git worktree repair` fixes the pointer files.\n\n- Area: Sandbox\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}