[CRIU] [PATCH 0/9] mount: add support of non-root shared mounts
Andrey Vagin
avagin at openvz.org
Thu Oct 23 06:48:58 PDT 2014
Cyrill found that CRIU are not able to containers with fedora,
where a service is executed in a separate mount namespace.
Here is a mountinfo for one of such services:
65 64 252:0 /vz/private/1 / rw,relatime shared:29 - ext4 /dev/mapper/centos_pcs-root rw,data=ordered
77 65 252:0 /vz/private/1/var/tmp/systemd-httpd.service-XLnJPNc/tmp /var/tmp rw,relatime shared:41 - ext4 /dev/mapper/centos_pcs-root rw,data=ordered
Here is a non-root shared bind-mount and its parent is from the
same shared group. This series adds support for such mounts.
Andrey Vagin (9):
zdtm: add a test to check non-root shared bind-mounts
Revert "mount: don't create a temporary directory for pivot_root()"
mount: don't mark mounts as private twice
mntns: pivot_root() can move the current root to a non-shared mount
mount: don't add extra / between a temporary root and mountpoint
mount: move code to validate shared mounts in a separate function
mntns: rework validation to support non-root shared bind-mounts
mount: add the mnt_roots mount in the mount tree on restore
mount: rework can_mount_now() to support bind-mounts of shared mounts
mount.c | 247 ++++++++++++++++++++++----------
test/zdtm.sh | 3 +
test/zdtm/live/static/Makefile | 1 +
test/zdtm/live/static/mntns_root_bind.c | 106 ++++++++++++++
4 files changed, 283 insertions(+), 74 deletions(-)
create mode 100644 test/zdtm/live/static/mntns_root_bind.c
--
1.9.3
More information about the CRIU
mailing list