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

Tweak uid/gid map default configuration #12

Merged
merged 1 commit into from Feb 15, 2016
Merged

Tweak uid/gid map default configuration #12

merged 1 commit into from Feb 15, 2016

Conversation

stgraber
Copy link
Contributor

  • Use an allocation of 65536 uids and gids to allow for POSIX-compliant
    user owned namespaces.
  • Don't allocate a uid/gid map to system users.
    Unfortunately checking for --system isn't quite enough as some
    distribution wrappers always call useradd without --system and take care
    of choosing a uid and gid themselves, so also check whether the
    requested uid/gid is in the user range.

This is taken from a patch I wrote for Ubuntu a couple years ago and
which somehow didn't make it upstream.

Signed-off-by: Stéphane Graber stgraber@ubuntu.com

 - Use an allocation of 65536 uids and gids to allow for POSIX-compliant
   user owned namespaces.
 - Don't allocate a uid/gid map to system users.
   Unfortunately checking for --system isn't quite enough as some
   distribution wrappers always call useradd without --system and take care
   of choosing a uid and gid themselves, so also check whether the
   requested uid/gid is in the user range.

This is taken from a patch I wrote for Ubuntu a couple years ago and
which somehow didn't make it upstream.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
hallyn added a commit that referenced this pull request Feb 15, 2016
Tweak uid/gid map default configuration
@hallyn hallyn merged commit 9ab9e6f into shadow-maint:master Feb 15, 2016
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.

None yet

2 participants