[CRIU] --ext-mount-map auto likes MS_BIND too much

Oleg Nesterov oleg at redhat.com
Mon Apr 20 09:49:00 PDT 2015


On 04/15, Tycho Andersen wrote:
>
> Sorry, I meant to reply to that thread but forgot. It seems like it
> would be nice to have the kernel at least expose the MNT_LOCK_* flags
> somehow,

If you need this, perhaps you can just send a patch to lkml which adds
the new entries into mnt_info[] in fs/proc_namespace.c:show_mnt_opts() ?

> Otherwise, it feels like we've traded the user having to supply a
> bunch of --ext-mount-map options for a bunch of --skip-mnt options.

Hmm... If I start mysqld under systemd it runs with unshared mnt ns and

	$ grep systemd-private /proc/`pidof mysqld`/mountinfo

shows:

	39 27 253:1 /tmp/systemd-private-oMYhXP/tmp /tmp rw,relatime shared:20 master:1 - xfs /dev/mapper/rhel_ibm--x3650m4--02--vm--02-root rw,seclabel,attr2,inode64,noquota
	40 27 253:1 /var/tmp/systemd-private-pQ1i03/tmp /var/tmp rw,relatime shared:21 master:1 - xfs /dev/mapper/rhel_ibm--x3650m4--02--vm--02-root rw,seclabel,attr2,inode64,noquota

how else can I use --ext-mount-map to dump restore these mounts?

Oleg.



More information about the CRIU mailing list