From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexey Dobriyan Subject: Re: [PATCH for 2.6.33] conntrack: restrict runtime hashsize modifications Date: Fri, 5 Feb 2010 13:19:28 +0200 Message-ID: References: <20100203203929.GA6168@x200> <4B6AF36A.3050402@trash.net> <4B6AFE22.20304@trash.net> <20100204194744.GA4185@x200> <4B6BEC23.8020101@trash.net> <4B6BFE29.1040204@trash.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Cc: davem@davemloft.net, jonathan@jonmasters.org, eric.dumazet@gmail.com, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org To: Patrick McHardy Return-path: In-Reply-To: <4B6BFE29.1040204@trash.net> Sender: netdev-owner@vger.kernel.org List-Id: netfilter-devel.vger.kernel.org On Fri, Feb 5, 2010 at 1:16 PM, Patrick McHardy wrote: > OK testing looks fine, although I'm quite surprised that its actually > possible to change module parameters from within non-init namespaces. > How is this supposed to work at all? I don't see how sysfs could > possibly provide a network namespace context ... You can do in write hook if (!net_eq(current->nsproxy->net_ns, &init_net)) return -EINVAL;