]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/nspawn/nspawn-patch-uid.c
nspawn: optionally fix up OS tree uid/gids for userns
authorLennart Poettering <lennart@poettering.net>
Wed, 20 Apr 2016 20:53:39 +0000 (22:53 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 25 Apr 2016 10:15:57 +0000 (12:15 +0200)
commit7336138eedf1c9b09b432428c4cccc2da25ab9e0
treeef2f1b0e4d5e7ea2ceb7e28c3364b06c70730b82
parent6402d5c628f1872a4874508bbe975aaac1cc747b
nspawn: optionally fix up OS tree uid/gids for userns

This adds a new --private-userns-chown switch that may be used in combination
with --private-userns. If it is passed a recursive chmod() operation is run on
the OS tree, fixing all file owner UID/GIDs to the right ranges. This should
make user namespacing pretty workable, as the OS trees don't need to be
prepared manually anymore.
.gitignore
Makefile.am
src/nspawn/nspawn-patch-uid.c [new file with mode: 0644]
src/nspawn/nspawn-patch-uid.h [new file with mode: 0644]
src/nspawn/nspawn.c
src/nspawn/test-patch-uid.c [new file with mode: 0644]