From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [RFC] SECMARK 1.1 Date: Mon, 15 May 2006 08:26:23 +0200 Message-ID: <44681F0F.9030601@trash.net> References: <446778F0.6000705@trash.net> <446811D3.5080905@trash.net> <446819FE.8050300@trash.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: selinux@tycho.nsa.gov, netdev@vger.kernel.org, netfilter-devel@lists.netfilter.org, Stephen Smalley , Daniel J Walsh , Karl MacMillan , "David S. Miller" , Thomas Bleher Return-path: To: James Morris In-Reply-To: Sender: netdev-owner@vger.kernel.org List-Id: netfilter-devel.vger.kernel.org James Morris wrote: > On Mon, 15 May 2006, Patrick McHardy wrote: > > >>>Not sure what you mean: it will cause ip_conntrack to be loaded, which >>>is needed when you specify the track flag. >> >> >>Yes, but the reason why it is loaded is because the module loader needs >>to resolve the symbol, not because of anything done at module runtime. > > > Am I missing something? This is what I want to happen. If you specify > SECMARK --track, ip_conntrack is to be loaded. But if you don't specify --track, the module loader will still have to resolve the symbol, so it gets loaded anyway, before your code will even run. Just look at need_conntrack(): /* Some modules need us, but don't depend directly on any symbol. They should call this. */ void need_conntrack(void) { }