]> git.ipfire.org Git - thirdparty/util-linux.git/commit
unshare: Add option to automatically create user and group maps
authorSean Anderson <seanga2@gmail.com>
Wed, 24 Nov 2021 18:26:17 +0000 (13:26 -0500)
committerKarel Zak <kzak@redhat.com>
Wed, 1 Dec 2021 12:36:00 +0000 (13:36 +0100)
commite67b0ba3889d6090fab19b4739d6c735456a851f
tree987ef0aaa083131dc86b542471c7a74cb4bd3b0e
parentff5dc96ebf2bf83150ba1fa73f4498ed2210c29c
unshare: Add option to automatically create user and group maps

This option is designed to handle the "garden path" user/group ID
mapping:

- The user has one big map in /etc/sub[u,g]id
- The user wants to map as many user and group IDs as they can,
  especially the first 1000 users and groups.

The "auto" map is designed to handle this. We find the first map
matching the current user, and then map the whole thing to the ID range
starting at ID 0.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
include/pathnames.h
sys-utils/unshare.c