Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
isolation: keep CAP_SYS_PTRACE when required
When pasta is started from an existing userns and tries to join the netns from another process it fails to open /proc/$pid/ns/net due the missing CAP_SYS_PTRACE capability in the --netns-only case. A simple reproducer for this. First create a userns: $ unshare -r Then create a new netns inside it and try to join that netns with pasta. $ unshare -n sleep inf & $ pasta --config-net --netns /proc/$!/ns/net Signed-off-by: Paul Holzinger <[email protected]> Signed-off-by: Stefano Brivio <[email protected]>
- Loading branch information