* detecting if compiled or loaded modules
[not found] <20021215053701.15581.32963.Mailman@kashyyyk>
@ 2002-12-15 5:39 ` 24
2002-12-15 8:59 ` Andrea Rossato
2002-12-15 12:30 ` Patrick Schaaf
0 siblings, 2 replies; 4+ messages in thread
From: 24 @ 2002-12-15 5:39 UTC (permalink / raw)
To: netfilter-devel
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...
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: detecting if compiled or loaded modules
2002-12-15 5:39 ` detecting if compiled or loaded modules 24
@ 2002-12-15 8:59 ` Andrea Rossato
2002-12-15 10:04 ` 24
2002-12-15 12:30 ` Patrick Schaaf
1 sibling, 1 reply; 4+ messages in thread
From: Andrea Rossato @ 2002-12-15 8:59 UTC (permalink / raw)
To: netfilter-devel
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...
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: detecting if compiled or loaded modules
2002-12-15 8:59 ` Andrea Rossato
@ 2002-12-15 10:04 ` 24
0 siblings, 0 replies; 4+ messages in thread
From: 24 @ 2002-12-15 10:04 UTC (permalink / raw)
To: netfilter-devel
Greets,
Useful indeed :) thanks! i just thought once the module is up or it's built in the kernel a file in /proc/sys/net/ipv4/* would appear but I think your suggestion would work thanks again
On Sun, 15 Dec 2002 09:59:39 +0100
Andrea Rossato <mailing_list@istitutocolli.org> wrote:
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: detecting if compiled or loaded modules
2002-12-15 5:39 ` detecting if compiled or loaded modules 24
2002-12-15 8:59 ` Andrea Rossato
@ 2002-12-15 12:30 ` Patrick Schaaf
1 sibling, 0 replies; 4+ messages in thread
From: Patrick Schaaf @ 2002-12-15 12:30 UTC (permalink / raw)
To: 24; +Cc: netfilter-devel
>Is there a way to determine if one of the Netfilter Configs is loaded
>as module or built-in in the kernel?
Have a look at /proc/ksyms. But that's not portable, probably not even
to the future 2.6 kernel.
There is no other way. Normal, sane people don't need a GUI to load
their modules. Their init scripts do it for them already. So, there is
no pressing need, especially for an iptables specific solution.
The best you can probably do, is just try to load the module, and ignore
the error case which says "already loaded". Talk to the insmod maintainers
if you have trouble with detecting that error case properly.
best regards
Patrick
--
Who runs GUI programs as root, anyway?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-12-15 12:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20021215053701.15581.32963.Mailman@kashyyyk>
2002-12-15 5:39 ` detecting if compiled or loaded modules 24
2002-12-15 8:59 ` Andrea Rossato
2002-12-15 10:04 ` 24
2002-12-15 12:30 ` Patrick Schaaf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.