Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753299AbYLNSHP (ORCPT ); Sun, 14 Dec 2008 13:07:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750996AbYLNSHA (ORCPT ); Sun, 14 Dec 2008 13:07:00 -0500 Received: from sovereign.computergmbh.de ([85.214.69.204]:60656 "EHLO sovereign.computergmbh.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750976AbYLNSG7 (ORCPT ); Sun, 14 Dec 2008 13:06:59 -0500 Date: Sun, 14 Dec 2008 19:06:56 +0100 (CET) From: Jan Engelhardt To: Jozsef Kadlecsik cc: David Miller , ajax@redhat.com, linux-kernel@vger.kernel.org, davej@redhat.com, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, Patrick McHardy Subject: Re: [PATCH] net: Remove a noisy printk In-Reply-To: Message-ID: References: <1229033625-30825-1-git-send-email-ajax@redhat.com> <20081211.203243.124017657.davem@davemloft.net> User-Agent: Alpine 1.10 (LNX 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1310 Lines: 31 On Sunday 2008-12-14 18:09, Jozsef Kadlecsik wrote: >> >> >> @@ -147,8 +147,6 @@ static unsigned int ipv4_conntrack_local(unsigned int hooknum, >> >> /* root is playing with raw sockets. */ >> >> if (skb->len < sizeof(struct iphdr) || >> >> ip_hdrlen(skb) < sizeof(struct iphdr)) { >> >> - if (net_ratelimit()) >> >> - printk("ipt_hook: happy cracking.\n"); >> >> return NF_ACCEPT; >> >> } >> >> return nf_conntrack_in(dev_net(out), PF_INET, hooknum, skb); >> >> I think this change is ok. > >In a >normal< system one usually does not use raw sockets. So if a root >process do use raw socket, at least netfilter sends a notification and >there's a chance that someone take notice it by checking the kernel logs. >[...] >But should we remove them due to nuisances on >test< systems? > >Rather make it a kernel compile option but do not remove. This warning is in the conntrack calling code. Iff you play with raw sockets and do something wrong, the generic network code should barf IMHO, not nf_conntrack, and not [nf_conntrack_ipv4 only]. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/