Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,28 @@ Run `./setup-sandbox.sh` to check your system's security configuration:

Use `./setup-sandbox.sh --fix` to automatically fix common issues (requires root)

### Troubleshooting User Namespaces

If you see the message "User namespaces not available", enable them with:

```bash
# Standard Linux systems
sudo sysctl -w kernel.unprivileged_userns_clone=1

# Ubuntu 24.04+ (AppArmor restriction)
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
```

To make the change persistent across reboots:

```bash
# Standard Linux systems
echo 'kernel.unprivileged_userns_clone=1' | sudo tee /etc/sysctl.d/99-userns.conf

# Ubuntu 24.04+
echo 'kernel.apparmor_restrict_unprivileged_userns=0' | sudo tee /etc/sysctl.d/99-userns.conf
```

## Quick Start

```bash
Expand Down
6 changes: 5 additions & 1 deletion setup-sandbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,12 @@ check_user_namespaces() {
check_fail "Unprivileged user namespaces disabled"
echo ""
echo " Enable with:"
echo " sudo sysctl kernel.unprivileged_userns_clone=1"
echo " sudo sysctl -w kernel.unprivileged_userns_clone=1"
echo " echo 'kernel.unprivileged_userns_clone=1' | sudo tee /etc/sysctl.d/99-userns.conf"
echo ""
echo " On Ubuntu 24.04+ (AppArmor restriction):"
echo " sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0"
echo " echo 'kernel.apparmor_restrict_unprivileged_userns=0' | sudo tee /etc/sysctl.d/99-userns.conf"

if $FIX_MODE; then
echo ""
Expand Down