]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipv6: Silence privacy extensions initialization
authorRomain Francoise <romain@orebokech.com>
Mon, 17 Jan 2011 07:59:18 +0000 (07:59 +0000)
committerAndi Kleen <ak@linux.intel.com>
Mon, 1 Aug 2011 20:54:46 +0000 (13:54 -0700)
commit879ed2486c8465ab8bd7b1bfd6f901e5589dbc16
tree1d2dd4edb72b8418cba6c66549087ee5d1ddd4ca
parent7b4fd0fff48eb5cd76bcf05e181e5f5187e77722
ipv6: Silence privacy extensions initialization

commit 2fdc1c8093255f9da877d7b9ce3f46c2098377dc upstream.

When a network namespace is created (via CLONE_NEWNET), the loopback
interface is automatically added to the new namespace, triggering a
printk in ipv6_add_dev() if CONFIG_IPV6_PRIVACY is set.

This is problematic for applications which use CLONE_NEWNET as
part of a sandbox, like Chromium's suid sandbox or recent versions of
vsftpd. On a busy machine, it can lead to thousands of useless
"lo: Disabled Privacy Extensions" messages appearing in dmesg.

It's easy enough to check the status of privacy extensions via the
use_tempaddr sysctl, so just removing the printk seems like the most
sensible solution.

Signed-off-by: Romain Francoise <romain@orebokech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
net/ipv6/addrconf.c