Skip to content

Latest commit

History

History
52 lines (37 loc) 路 949 Bytes

File metadata and controls

52 lines (37 loc) 路 949 Bytes
icon shield-halved
description Required for Sandboxing, Security & Performance

Kernel User NameSpaces

{% hint style="info" %} Required for Sandboxing, Security & Performance {% endhint %}

Some portable packages use user namespaces for sandboxing, which may be restricted on certain systems.

Common Errors

clone failed: Operation not permitted
user namespaces are not enabled

Solutions

Enable User Namespaces

Check current setting:

sysctl kernel.unprivileged_userns_clone

Enable temporarily:

sudo sysctl -w kernel.unprivileged_userns_clone=1

Enable permanently:

echo 'kernel.unprivileged_userns_clone=1' | sudo tee /etc/sysctl.d/userns.conf
sudo sysctl --system

Debian/Ubuntu Specific

sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0

Use --no-sandbox

Some applications accept --no-sandbox flag (use with caution).