From 9c4744d67d7269fea190963c437a15261e41ba44 Mon Sep 17 00:00:00 2001 From: Kirill Tkhai Date: Thu, 20 Oct 2016 14:44:13 +0300 Subject: [PATCH] mount: Set opts.has_binfmt_misc regardless of mnt_ns level Since cr-time binfmt_misc is mounted regardless of mnt_ns level, it's need just not to be over the system, make parse method in consistent state with this behaviour. Signed-off-by: Kirill Tkhai Signed-off-by: Pavel Emelyanov --- criu/filesystems.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/criu/filesystems.c b/criu/filesystems.c index 24879c99e..d413332e8 100644 --- a/criu/filesystems.c +++ b/criu/filesystems.c @@ -39,8 +39,7 @@ LIST_HEAD(binfmt_misc_list); static int binfmt_misc_parse(struct mount_info *pm) { - if (pm->nsid->type == NS_ROOT) - opts.has_binfmt_misc = true; + opts.has_binfmt_misc = true; return 0; }