nspawn: allow configuration of user namespaces in .nspawn files
authorLennart Poettering <lennart@poettering.net>
Fri, 22 Apr 2016 11:02:53 +0000 (13:02 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 25 Apr 2016 10:16:02 +0000 (12:16 +0200)
commit0de7accea9e0f7b696f108a43bff7e454fa8f016
tree4b7f4963a39aedf0b7bb74ad4083a1f56d6a66cd
parent19aac838fc3b7bcaed272f19a0bec3962eef7418
nspawn: allow configuration of user namespaces in .nspawn files

In order to implement this we change the bool arg_userns into an enum
UserNamespaceMode, which can take one of NO, PICK or FIXED, and replace the
arg_uid_range_pick bool with it.
src/nspawn/nspawn-gperf.gperf
src/nspawn/nspawn-settings.c
src/nspawn/nspawn-settings.h
src/nspawn/nspawn.c