Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix namespaces_limits sometimes failing
The PID from `--info-fd` is red as soon as bwrap forks. This can result in user namespace acquired from it be either direct child namespace or have an intermediate parent user namespace. See containers/bubblewrap#634 Check the current process user namespace id to avoid calling `setns()` on a namespace process already is in. Also cleanup file descriptors after the `setns()`.
- Loading branch information