[CRIU] [PATCH 0/2] mount: fix mounting non-root shared mounts

Andrei Vagin avagin at openvz.org
Mon Nov 21 21:36:13 PST 2016


From: Andrei Vagin <avagin at virtuozzo.com>

The widest mount of a shared group has to be mounted first and
then other mounts has to be bind-mounted from the first one to
inherite its group.

This patch adds a check in can_mount_now() to mount the widest group
mount first and sets it as a source mount for other members.

Andrei Vagin (2):
  test: check non-root shared mounts
  mount: fix mounting non-root shared mounts

 criu/mount.c                              |  22 +++++-
 test/zdtm/static/Makefile                 |   1 +
 test/zdtm/static/mntns_shared_bind03.c    | 124 ++++++++++++++++++++++++++++++
 test/zdtm/static/mntns_shared_bind03.desc |   1 +
 4 files changed, 144 insertions(+), 4 deletions(-)
 create mode 100644 test/zdtm/static/mntns_shared_bind03.c
 create mode 100644 test/zdtm/static/mntns_shared_bind03.desc

-- 
2.7.4



More information about the CRIU mailing list