Kir, Please review the following patchset. It implements support for userns inside containers. Running a container works, and "vzctl enter" works as well. There are still some caveats that I intend to tackle in the upcoming weeks. Most pressing, is the fact that although this patchset finally implements --ipadd (now all infrastructure is in place), we can ssh into containers due to issues related to the proc filesystem.
Let me know if there are any issues, I'll happily fix them. Glauber Costa (8): host uid and gid parameters adjust fs_create parameter user namespace support for upstream containers modify tar extraction to account for user namespace add user mismatch test allow local uid and gid to be specified at container creation automatically add bridge venet0 when needed allow for distro-specific fix ups at creation time. etc/dists/redhat.conf | 1 + etc/dists/scripts/fixups.sh | 43 +++++++ include/dist.h | 2 + include/env.h | 4 +- include/res.h | 8 ++ include/types.h | 1 + include/vzctl_param.h | 3 + man/vzctl.8.in | 14 +++ scripts/vps-create.in | 19 ++++ scripts/vps-functions.in | 7 ++ src/lib/Makefile.am | 3 + src/lib/chown_preload.c | 93 +++++++++++++++ src/lib/config.c | 32 ++++++ src/lib/create.c | 30 +++-- src/lib/dist.c | 10 +- src/lib/env.c | 23 +++- src/lib/exec.c | 2 +- src/lib/hooks_ct.c | 269 ++++++++++++++++++++++++++++++++++++++++++-- src/vzctl-actions.c | 2 + src/vzctl.c | 1 + vzctl.spec | 2 +- 21 files changed, 544 insertions(+), 25 deletions(-) create mode 100755 etc/dists/scripts/fixups.sh create mode 100644 src/lib/chown_preload.c -- 1.7.11.7 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel