From patchwork Mon Jan 17 17:59:18 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Francoise X-Patchwork-Id: 79204 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 567A4B712E for ; Tue, 18 Jan 2011 04:59:39 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751753Ab1AQR7e (ORCPT ); Mon, 17 Jan 2011 12:59:34 -0500 Received: from smtp6-g21.free.fr ([212.27.42.6]:32786 "EHLO smtp6-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751658Ab1AQR7e (ORCPT ); Mon, 17 Jan 2011 12:59:34 -0500 Received: from elegiac.orebokech.com (unknown [82.67.41.165]) by smtp6-g21.free.fr (Postfix) with ESMTP id 194B68252F; Mon, 17 Jan 2011 18:59:19 +0100 (CET) Received: by elegiac.orebokech.com (Postfix, from userid 1000) id A40746011D; Mon, 17 Jan 2011 18:59:18 +0100 (CET) From: Romain Francoise To: "David S. Miller" Cc: Alexey Kuznetsov , "Pekka Savola \(ipv6\)" , James Morris , Hideaki YOSHIFUJI , Patrick McHardy , netdev@vger.kernel.org Subject: [PATCH] ipv6: Silence privacy extensions initialization Organization: orebokech dot com X-Face: }9mYu,e_@+e!`Z-P5kVXa3\_b:hdJ"B)ww[&=b<2=awG:GOIM MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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 --- net/ipv6/addrconf.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 5b189c9..24a1cf1 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -420,9 +420,6 @@ static struct inet6_dev * ipv6_add_dev(struct net_device *dev) dev->type == ARPHRD_TUNNEL6 || dev->type == ARPHRD_SIT || dev->type == ARPHRD_NONE) { - printk(KERN_INFO - "%s: Disabled Privacy Extensions\n", - dev->name); ndev->cnf.use_tempaddr = -1; } else { in6_dev_hold(ndev);