Skip to content

ProcessContainer: denying a path under a missing parent fails initialization #1576

Open

Description

@iceweasel-oai

A deny path beneath a nonexistent parent directory prevents MXC from initializing.

Minimal repro

  1. Create C:\mxc-repro, leaving C:\mxc-repro\missing absent.
  2. Launch cmd.exe /d /c "exit 0" through ProcessContainer with this filesystem deny entry:
{
  "filesystem": {
    "deniedPaths": ["C:\\mxc-repro\\missing\\blocked"]
  }
}

Environment creation fails before the command starts:

CreateProcessSecurityEnvironment failed (HRESULT = 0x80070003)

Expected: MXC should start successfully and enforce the deny on the exact path, including preventing its creation if the parent directories are created later.

Observed on Windows 11 build 26200.9457 through Codex CLI 0.162.1, using MXC commit 6cd3d58f05d3447e67109cfb75e042803b843ca4.

Activity

  1. added
    Needs-Triage
    on Oct 26, 2026
  2. added
    OS-Windows
    Backend-ProcessContainer
    Backend-ProcessContainer-Filesystem
    and removed
    Needs-Triage
    on Oct 26, 2026
  3. added
    Issue-Feature
    on Oct 26, 2026
  4. denelon commented on Oct 26, 2026

    @denelon
    Collaborator

    Thanks for the simple repro. We'll have to investigate to see what would need to be done in order to support this scenario.

  5. added
    Issue-Bug
    and removed
    Backend-ProcessContainer
    Issue-Feature
    on Oct 27, 2026
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

    Backend-ProcessContainer-FilesystemIssue-BugOS-Windows

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions