From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrea Rossato Subject: Re: detecting if compiled or loaded modules Date: Sun, 15 Dec 2002 09:59:39 +0100 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <3DFC447B.4090200@istitutocolli.org> References: <20021215053701.15581.32963.Mailman@kashyyyk> <20021215133954.70ad328c.24@k0n.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Return-path: To: netfilter-devel@lists.netfilter.org In-Reply-To: <20021215133954.70ad328c.24@k0n.org> Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org there are probably better and more efficient ways, but: /proc/modules gives you the list of loaded modules you can check if a module was built into the kernel by checking its functions in /boot/System.map for istance: cat /boot/System.map | grep hisax to check if hisax support was built into the kernel (that will give you the list of related functions). in /lib/modules/kernelversion/modules.dep you'll find a list of compiled modules with their dependencies. hope that this can be useful andrea 24 wrote: > Greets, > > Is there a way to determine if one of the Netfilter Configs is loaded as module or built-in in the > kernel? For example FTP protocol support. Once the system boots or the module is loaded shouldnt it > create a file somewhere in /proc once the module is up or once the system boots. I'm trying to create > a customized firewall program if it didnt detect the FTP protocol support it will load the module > or what. Need help... >