fix(bootstrap): pre-create daemon staging dir in agent jails #134
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "jail-staging-dir"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up intended for #131 (which merged at its first commit before this one landed). Fixes the second root cause of the jail-spawn EACCES found via truss (docs #132).
For staged spawns the daemon writes
launch.sh/env.shunder<jail_root>/var/run/colibri-stage/<stage_id>/, but nothing ever created/var/run/colibri-stage. The daemon runs asclawdieand can'tmkdirunder root-owned/var/run, so staging failed with Permission denied.agent-jail-bootstrap.shnow pre-creates the dir owned by the daemon user, mode0700— replacing the runtimechmod 777workaround from #132: durable across jail rebuilds and not world-writable (staged files are sourced as shell, so world-writable would be a privilege footgun).DAEMON_USERis overridable, defaulting toclawdie.sh -nclean.Together with #131 this closes the spawn EACCES end-to-end.
🤖 Generated with Claude Code