[CRIU] [PATCH] mount: don't do MS_REC|MS_PRIVATE for host mounts
Vasily Averin
vvs at virtuozzo.com
Wed Jun 22 05:19:58 PDT 2016
On 22.06.2016 09:59, Andrey Vagin wrote:
> From: Andrew Vagin <avagin at virtuozzo.com>
> diff --git a/criu/mount.c b/criu/mount.c
> index e891c92..e3b837f 100644
> --- a/criu/mount.c
> +++ b/criu/mount.c
> @@ -2733,7 +2733,7 @@ static int cr_pivot_root(char *root)
> goto err_tmpfs;
> }
>
> - if (mount("none", put_root, "none", MS_REC|MS_PRIVATE, NULL)) {
> + if (mount("none", put_root, "none", MS_REC|MS_SLAVE, NULL)) {
> pr_perror("Can't remount root with MS_PRIVATE");
Seems you forget update error message here.
More information about the CRIU
mailing list