Skip to content

Commit 7a0cc1e

Browse files
committed
v1.2.4
1 parent 2ba807f commit 7a0cc1e

3 files changed

Lines changed: 25 additions & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
6363
&& rm -rf /var/lib/apt/lists/*
6464

6565
# ---------- bubblewrap setuid (Codex CLI sandbox on restricted kernels) ----------
66-
RUN chmod u+s /usr/bin/bwrap
66+
RUN test -x /usr/bin/bwrap && chown root:root /usr/bin/bwrap && chmod 4755 /usr/bin/bwrap && test "$(stat -c '%a %u %g' /usr/bin/bwrap)" = "4755 0 0"
6767

6868
# ---------- Full-only system packages ----------
6969
RUN if [ "$VARIANT" = "full" ]; then \

docs/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to HolyClaude will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/), and this project adheres to [Semantic Versioning](https://semver.org/).
66

7+
## [1.2.4] - 05/27/2026
8+
9+
### Fixed
10+
- Repaired bubblewrap setuid permissions at container startup so Codex `apply_patch` keeps working on Synology and other restricted-user-namespace hosts after `docker compose pull && docker compose up -d`.
11+
712
## [1.2.3] - 05/27/2026
813

914
### Changed

scripts/entrypoint.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,25 @@ if ! runuser -u "$CLAUDE_USER" -- test -w "$WORKSPACE_DIR"; then
4444
echo "[entrypoint] WARNING: /workspace is still not writable; fix host ownership or PUID/PGID"
4545
fi
4646

47+
# ---------- Repair bubblewrap setuid permissions ----------
48+
BWRAP_BIN="/usr/bin/bwrap"
49+
if [ -x "$BWRAP_BIN" ]; then
50+
bwrap_mode="$(stat -c "%a %u %g" "$BWRAP_BIN" 2>/dev/null || true)"
51+
if [ "$bwrap_mode" != "4755 0 0" ]; then
52+
echo "[entrypoint] Repairing bubblewrap setuid permissions"
53+
chown root:root "$BWRAP_BIN" 2>/dev/null || true
54+
chmod 4755 "$BWRAP_BIN" 2>/dev/null || true
55+
bwrap_mode="$(stat -c "%a %u %g" "$BWRAP_BIN" 2>/dev/null || true)"
56+
fi
57+
58+
if [ "$bwrap_mode" != "4755 0 0" ]; then
59+
final_mode="${bwrap_mode:-missing}"
60+
echo "[entrypoint] WARNING: /usr/bin/bwrap mode is ${final_mode:-missing}, expected 4755 0 0; Codex sandbox may fail on restricted kernels"
61+
fi
62+
else
63+
echo "[entrypoint] WARNING: /usr/bin/bwrap is missing or not executable; Codex sandbox may fail"
64+
fi
65+
4766
# ---------- Codex CLI config symlink (every boot) ----------
4867
mkdir -p "$CLAUDE_HOME/.claude/.codex"
4968
chown "$PUID:$PGID" "$CLAUDE_HOME/.claude/.codex"

0 commit comments

Comments
 (0)