Commit dc8261ce authored by Dmitry Safonov's avatar Dmitry Safonov Committed by Pavel Emelyanov

net: suggest enabling NETFILTER_XT_MARK if iptables-restore failed

On x86_64 defconfig it's =m, so if you boot kernel without initramfs
in qemu, you will see this.

[xemul: split long line]

Fixes: #292
Signed-off-by: 's avatarDmitry Safonov <dsafonov@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 871ce841
...@@ -1780,6 +1780,12 @@ int network_lock_internal() ...@@ -1780,6 +1780,12 @@ int network_lock_internal()
if (kdat.ipv6) if (kdat.ipv6)
ret |= iptables_restore(true, conf, sizeof(conf) - 1); ret |= iptables_restore(true, conf, sizeof(conf) - 1);
if (ret)
pr_err("Locking network failed: iptables-restore returned %d. "
"This may be connected to disabled "
"CONFIG_NETFILTER_XT_MARK kernel build config "
"option.\n", ret);
if (restore_ns(nsret, &net_ns_desc)) if (restore_ns(nsret, &net_ns_desc))
ret = -1; ret = -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment