Skip to content

Add --user option to create user namespace#1

Draft
JonathonReinhart wants to merge 2 commits intomasterfrom
add-user-option
Draft

Add --user option to create user namespace#1
JonathonReinhart wants to merge 2 commits intomasterfrom
add-user-option

Conversation

@JonathonReinhart
Copy link
Copy Markdown
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