google / sandboxed-api

Generate sandboxes for C/C++ libraries automatically
https://developers.google.com/sandboxed-api/
Apache License 2.0
1.65k stars 189 forks source link

Allow use on systems without unprivileged user ns #173

Open fira959 opened 3 months ago

fira959 commented 3 months ago

Currently the sandboxed-api examples fail to build on systems that do not allow unprivileged processed to create user namespaces. While few systems do not enable user namespaces entirely, some distributions and hardening recommendations restrict user ns to privileged processes.

Bubblewrap has solved this by providing an alternative suid binary that sets up the user namespace before dropping privileges, allowing this feature to work on systems with restricted user namespaces.

Currently, the use of sandboxed-api is not possible on hardened systems that do not allow unprivileged user namespaces. Please allow at least a partial use of sandboxed-api on these hardened systems.