編集部セレクト
サンドボックスを有効にした途端に、Bashが全部失敗していませんか。
Claude Codeのメンテナが、同じ症状を再現したと報告しました。
原因はUnixソケットの絞り込みで、入れ子の名前空間を作れず権限エラーになります。
allowAllUnixSocketsをtrueにすると、サンドボックスは起動します。
ファイルの許可と通信先の制限は残るので、今日はこの一つだけ切り替えてください。
出典の原文(引用)
@bcherny (Collaborator): "Reproduced on 2.1.233 (Linux)... Flipping only `allowAllUnixSockets` to `true` arms the sandbox and the probe prints CANARY_B_OK, exactly as you reported." Error: "apply-seccomp: write /proc/self/setgroups (nested userns is capability-restricted; caller must provide CAP_SYS_ADMIN): Permission denied" Workaround disables Unix-socket filtering but leaves filesystem allow/deny lists and network domain filtering intact.— github.com
