[CRIU] [PATCH] userns: Don't fork task not to dump userns
Andrew Vagin
avagin at parallels.com
Fri Nov 7 12:57:57 PST 2014
Acked-by: Andrew Vagin <avagin at parallels.com>
On Fri, Nov 07, 2014 at 09:37:33PM +0400, Pavel Emelyanov wrote:
> Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
> ---
> namespaces.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/namespaces.c b/namespaces.c
> index 85e447b..c1cf069 100644
> --- a/namespaces.c
> +++ b/namespaces.c
> @@ -722,10 +722,6 @@ static int do_dump_namespaces(struct ns_id *ns)
> ns->id, ns->pid);
> ret = dump_net_ns(ns->id);
> break;
> - case CLONE_NEWUSER:
> - /* userns is dumped before dumping tasks */
> - ret = 0;
> - break;
> default:
> pr_err("Unknown namespace flag %x", ns->nd->cflag);
> break;
> @@ -770,6 +766,8 @@ int dump_namespaces(struct pstree_item *item, unsigned int ns_flags)
> case CLONE_NEWPID:
> /* Dumped explicitly with dump_mnt_namespaces() */
> case CLONE_NEWNS:
> + /* Userns is dumped before dumping tasks */
> + case CLONE_NEWUSER:
> continue;
> }
>
> --
> 1.8.4.2
>
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
More information about the CRIU
mailing list