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 <ktkhai@virtuozzo.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
Kirill Tkhai 2016-10-20 14:44:13 +03:00 committed by Pavel Emelyanov
parent e2f6bb831a
commit 9c4744d67d

View file

@ -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;
}