Skip to content

'Full Access' permissions broken -- network calls are still sandboxed #19196

Closed

Description

@agjones

What version of Codex CLI is running?

codex-cli 0.124.0

What subscription do you have?

pro

Which model were you using?

gpt-5.5

What platform is your computer?

Darwin 24.6.0 arm64 arm

What terminal emulator and version are you using (if applicable)?

Warp v0.2026.04.01.08.39.stable_02

What issue are you seeing?

'Full Access' permissions broken. Network calls are still sandboxed when these permissions are active.

What steps can reproduce the bug?

Uploaded thread: 019dbbe1-acfa-79d1-b0bc-b7a0f1133f34

What is the expected behavior?

Network calls are not sandboxed.

Additional information

No response

Activity

  1. added
    bug
    on Apr 23, 2026
  2. added
    CLI
    sandbox
    on Apr 23, 2026
  3. agjones commented on Apr 23, 2026

    @agjones
    Author

    note that sessions started with --yolo do not have this issue. only ones started without and switched in-session to full access do

  4. removed
    CLI
    on Apr 23, 2026
  5. KnotFalse commented on Apr 23, 2026

    @KnotFalse

    I can reproduce what @agjones described: starting Codex with --dangerously-bypass-approvals-and-sandbox works, but switching an existing
    session to Full Access does not give equivalent execution permissions.

    Environment:

    • Codex CLI: codex-cli 0.124.0
    • Platform: WSL2, Ubuntu 24.04.4 LTS
    • Kernel: 6.6.87.2-microsoft-standard-WSL2
    • Workspace path: /mnt/c/Users/user/Work/Local Files/dirname
    • Docker: Docker version 28.1.1, build 4eba377
    • Subscription: pro
    • Model: gpt-5.5

    Repro command inside Codex:

    docker ps --format '{{.Names}}\t{{.Status}}'

    Observed behavior:

    When the session is using in-session Full Access, the command fails:

    permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock:

    Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.49/containers/json":
    dial unix /var/run/docker.sock: connect: operation not permitted

    Socket/user metadata from the same Codex session:

    $ id
    uid=1000(my_username) gid=1000(my_username) groups=1000(my_username),65534(nogroup)
    
    $ stat -c '%A %a %U %G %n' /var/run/docker.sock
    srw-rw---- 660 nobody nogroup /var/run/docker.sock
    
    $ docker context ls
    default *       Current DOCKER_HOST based configuration   unix:///var/run/docker.sock

    The process is in the socket’s group (nogroup), so this does not look like ordinary Unix filesystem permission failure. It looks like the command is still being constrained by the sandbox/broker despite Full Access being selected.

    Additional signal:

    • Running the same Docker command through Guardian approval succeeds.
    • Starting Codex directly with --dangerously-bypass-approvals-and-sandbox also works.
    • The broken case is specifically the in-session Full Access path.

    This makes the issue look like Full Access permission state is reflected in the UI/session policy, but not fully applied to the actual exec sandbox used for tool commands. It also appears related to #19217

  6. adsqx commented on Apr 23, 2026

    @adsqx

    Należy pamiętać, że sesje rozpoczęte z opcją --yolo nie mają tego problemu. Problem ten dotyczy tylko sesji rozpoczętych bez opcji i przełączonych w sesji na pełny dostęp.

    I can confirm

  7. arch-opteryx commented on Apr 23, 2026

    @arch-opteryx

    I can confirm as well. The fix is to run with --yolo for now.

  8. pirate commented on Apr 24, 2026

    @pirate

    I'm also seeing the same issue with codex CLI v0.124.0 on macOS. Session ID: 019dbdab-ec7d-7a00-9945-e0396df51542.

    Setting /approvals to Full Access doesn't work, github.com access is blocked by the proxy and various filesystem writes are also failing (e.g. ~/Desktop/test.txt is blocked).

  9. trckster commented on Apr 24, 2026

    @trckster

    Same issue here, arrived with v0.124.0, Ubuntu 24.04.
    Auto-review seems to be working, but Full Access fails with bwrap: loopback: Failed RTM_NEWADDR.

  10. SamFold commented on Apr 24, 2026

    @SamFold

    Same issue, setting to Full Access with /approvals or /permissions doesn't work, the model reports it cannot access the internet or other folders outside of the sandbox.

  11. mmoraiz commented on Apr 24, 2026

    @mmoraiz

    Confirming this on another Linux setup.

    • Codex CLI: codex-cli 0.124.0
    • OS: Ubuntu 24.04.4 LTS noble
    • Kernel: Linux 6.17.0-22-generic x86_64
    • Symptom: switching an existing session to Full Access still leaves exec commands going through bwrap and failing with:
      bwrap: loopback: Failed RTM_NEWADDR: Operation not permitted
    • Confirmed in a new session after changing permissions.
    • Auto-review/escalated commands work.
    • Workaround: adding features.use_legacy_landlock = true to ~/.codex/config.toml makes codex sandbox linux -- /bin/pwd work again.

    This looks consistent with Full Access state not being applied to the actual exec sandbox path in 0.124.0.

  12. Fanduzi commented on Apr 24, 2026

    @Fanduzi

    same issue
    /permission full, but still got

      ssh: connect to host github.com port 22: Operation not permitted
      fatal: Could not read from remote repository.
    
  13. viyatb-oai commented on Apr 24, 2026

    @viyatb-oai
    Contributor

    hi, please update to 0.125.0 - the fix was landed a while ago but it didn't make cut for 0.124.0. This should fix the affected cases where a session started in default permissions tries to switch to danger-full-access using /permissions. Sorry for the thrash!

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

    bugsandbox

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions