[CRIU] [PATCH] mount: rework perparation for pivot_root (v2)

Pavel Emelyanov xemul at parallels.com
Fri Sep 12 06:26:02 PDT 2014


On 09/12/2014 05:17 PM, Andrey Vagin wrote:

I agree with

> We can't bind-mount the required root into itself instead of
> resolving a parent mount.

but see this

> +		if (mount(opts.root, opts.root, NULL, MS_BIND, NULL)) {
> +			pr_perror("Unable to bind-mount %s", opts.root);
>  			return -1;
>  		}

What is going on here? Can we, or cannot?

Thanks,
Pavel



More information about the CRIU mailing list