Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --user option to create user namespace #1

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JonathonReinhart
Copy link
Owner

This adds a -U/--user option which uses CLONE_NEWUSER to create a new user namespace, which would avoid the need to run as root.

However, it is incomplete because it does not set any uid/gid mappings, causing this bad behavior due to invalid uid/gid:

/proc/sys/net/ipv4/ping_group_range: 65534	65534
  ->  65535 65535
Child function raised exception:
OSError: [Errno 22] Invalid argument

@JonathonReinhart JonathonReinhart changed the title Add user option Add --user option to create user namespace May 4, 2021
@JonathonReinhart JonathonReinhart marked this pull request as draft September 9, 2021 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant