Skip to content

Measure the Write Guard's HOME and XDG_CONFIG_HOME Override Over-Denial #3311

Closed

Description

@ptr727

Context

The change closing #3057 denies a HOME or XDG_CONFIG_HOME assignment, other than /dev/null, that reaches a git command, since either one points git at a global config file the guard does not read. #3057 asked to measure the over-denial first, because a HOME override is a common test-isolation shape. That measurement did not run. The repository's own scripts and docs hold no shell-level HOME=... git shape, which bounds the risk here and says nothing about other repositories.

Gap

The deny's reach outside this repository is unmeasured. Constructed shapes it now denies:

  • HOME=/example/home git status
  • export XDG_CONFIG_HOME=/example/cfg; git log -1

Possible Direction

Measure how often a session's command carries such an assignment ahead of a git command, then decide whether a read-only git subcommand under an overridden HOME can be allowed without reopening the config read #3057 closed. Any narrowing waits for the guard's allow-gap lanes, since narrowing a deny while gaps are open has repeatedly opened a new allow.

Activity

  1. added
    bug
    script
    on Oct 21, 2026
  2. ptr727 commented on Oct 23, 2026

    @ptr727
    OwnerAuthor

    Closed under the maintainer's decision (ptr727, 2026-10-23) on #3391: the backlog keeps real bugs with a stated failure, features the maintainer wants, and open decisions. A finding the review loop filed on code or text a change did not touch, a refactor or consolidation chore, a tracker, a wording item, or a guard shape no session has produced is closed rather than worked. Reopen with the input and the wrong result if this issue states one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugscript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions