util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] unshare: Add support for mapping ranges of user/group IDs
@ 2021-11-17  2:10 Sean Anderson
  2021-11-17  2:10 ` [PATCH 1/5] include/c: Add abs_diff macro Sean Anderson
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Sean Anderson @ 2021-11-17  2:10 UTC (permalink / raw)
  To: util-linux, Karel Zak
  Cc: Mikhail Gusarov, Matthew Harm Bekkema, James Peach, Sean Anderson

This series adds support for mapping ranges of user/group IDs using the
newuidmap and newgidmap programs from shadow. The intent is to allow
for root-less bootstrapping of Linux root filesystems with correct
ownership. My primary inspiration is mmdebstrap [1], which uses
unshare(2) to create Debian root filesystems without needing root
access.

[1] https://gitlab.mister-muffin.de/josch/mmdebstrap


Sean Anderson (5):
  include/c: Add abs_diff macro
  unshare: Add waitchild helper
  unshare: Add options to map blocks of user/group IDs
  unshare: Add option to automatically create user and group maps
  unshare: Document --map-{groups,users,auto}

 include/c.h              |   8 +
 sys-utils/unshare.1.adoc |  32 ++++
 sys-utils/unshare.c      | 374 +++++++++++++++++++++++++++++++++++++--
 3 files changed, 399 insertions(+), 15 deletions(-)

-- 
2.33.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-11-24  2:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-17  2:10 [PATCH 0/5] unshare: Add support for mapping ranges of user/group IDs Sean Anderson
2021-11-17  2:10 ` [PATCH 1/5] include/c: Add abs_diff macro Sean Anderson
2021-11-17  2:10 ` [PATCH 2/5] unshare: Add waitchild helper Sean Anderson
2021-11-17  2:10 ` [PATCH 3/5] unshare: Add options to map blocks of user/group IDs Sean Anderson
2021-11-23 14:33   ` Karel Zak
2021-11-24  2:10     ` Sean Anderson
2021-11-17  2:10 ` [PATCH 4/5] unshare: Add option to automatically create user and group maps Sean Anderson
2021-11-23 14:40   ` Karel Zak
2021-11-24  2:11     ` Sean Anderson
2021-11-17  2:10 ` [PATCH 5/5] unshare: Document --map-{groups,users,auto} Sean Anderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).