]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/nspawn/nspawn.c
nspawn: add high-level option for identity userns mapping
authorLennart Poettering <lennart@poettering.net>
Tue, 27 Apr 2021 12:37:19 +0000 (14:37 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 7 May 2021 20:43:05 +0000 (22:43 +0200)
commit33eac552ab22af58b303342b1fa912900fa42820
treedf3ed16374cbf766a75328b1baa9ad3cbc763ad3
parent0cd70d43a36d94b578004dfbf176007de3fd1f8a
nspawn: add high-level option for identity userns mapping

userns identity 1:1 mapping is a pretty useful concept since it isolates
capability sets between containers and hosts, even if it doesn't map
any uid ranges. Let's support it with an explicit concept.

(Note that this is identical to --private-users=0:65536 (which in turn
is identical to --private-users=0), but I think it makes to emphasize
this concept as a high-level one that makes sense to support.)
src/nspawn/nspawn.c