openclaw - 💡(How to fix) Fix Bundled Codex bwrap sandbox needs first-class AppArmor support or clearer diagnostics on Ubuntu 24.04+

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

On an AppArmor-enforcing Ubuntu 24.04 host, Codex-backed cron and agent runs can fail at the sandbox boundary before user code meaningfully executes. The failure mode appears to involve the bundled bwrap path and host policy interaction.

Error Message

  • install or upgrade flows detect the missing policy and warn clearly

Root Cause

This failure happens before normal skill logic, so it is difficult to diagnose from the job summary alone. Operators can spend time debugging the wrong layer unless the runtime makes the host-policy dependency explicit.

RAW_BUFFERClick to expand / collapse

Summary

On an AppArmor-enforcing Ubuntu 24.04 host, Codex-backed cron and agent runs can fail at the sandbox boundary before user code meaningfully executes. The failure mode appears to involve the bundled bwrap path and host policy interaction.

Actual behavior

In failing runs, the runtime launches a bundled bwrap sandbox and the session stops with permission errors before normal skill work completes. Observed errors include permission failures such as:

  • bwrap: loopback: Failed RTM_NEWADDR: Operation not permitted

The practical result is that the job can look like a skill/runtime problem even though the blocker is sandbox bootstrap or host policy compatibility.

Expected behavior

One of these should happen:

  • OpenClaw ships a working AppArmor profile or equivalent support for the bundled sandbox path
  • install or upgrade flows detect the missing policy and warn clearly
  • failing runs emit a first-class diagnostic that explicitly identifies AppArmor or sandbox policy incompatibility as the root cause

Why this matters

This failure happens before normal skill logic, so it is difficult to diagnose from the job summary alone. Operators can spend time debugging the wrong layer unless the runtime makes the host-policy dependency explicit.

Minimal repro

  1. Use Ubuntu 24.04 with AppArmor enforcing
  2. Run a Codex-backed cron or agent session that uses the bundled sandbox path
  3. Observe the run fail at sandbox startup with Operation not permitted style errors before normal skill execution completes

Environment

  • OpenClaw 2026.5.19
  • Codex-backed runtime
  • Ubuntu 24.04
  • AppArmor enforcing

Note

If this is already tracked under an existing bwrap or AppArmor issue, this report can be treated as an additional reproducibility and UX signal rather than a separate root cause claim.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

One of these should happen:

  • OpenClaw ships a working AppArmor profile or equivalent support for the bundled sandbox path
  • install or upgrade flows detect the missing policy and warn clearly
  • failing runs emit a first-class diagnostic that explicitly identifies AppArmor or sandbox policy incompatibility as the root cause

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Bundled Codex bwrap sandbox needs first-class AppArmor support or clearer diagnostics on Ubuntu 24.04+