containers / containers/bubblewrap

Missing examples / tests for --userns2 option

Open
#542 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
8.7k
Forks
386
Avg merge
3d 17h
Merged PRs (30d)
11

Description

Trying to get a grasp on the nested namespaces and how to enter those with --userns2
There are no examples or tests I can find

For example when I run
```sh
bwrap --unshare-user --dev-bind / / --tmpfs /tmp /bin/bash
```
I believe this creates a nested user namespace, I can see a complete namespace set (time,cgroup,uts,ipc,net,user,mnt,pid) using lsns
while if I do lsns on the host there are only 2 namespaces for the process (user,mnt)

How can I make this work?
```sh
bwrap --userns 11 --userns2 12 --dev-bind / / /bin/bash 11

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.