* /proc and/or /sys file to know if ip_tables is there?
@ 2013-11-28 10:27 Tomasz Bursztyka
2013-11-28 16:10 ` Phil Oester
0 siblings, 1 reply; 3+ messages in thread
From: Tomasz Bursztyka @ 2013-11-28 10:27 UTC (permalink / raw)
To: netfilter-devel
Hi,
I need to know reliably at runtime whether or not ip_tables is either
currently loaded as a module or built-in the kernel.
Testing for /sys/module/ip_tables solves the first issue, but in case of
built-in it's not usable.
I could check for ip_tables_* symbols in /proc/kallsyms but I guess it's
not a nice way.
Any other proper way?
Tomasz
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: /proc and/or /sys file to know if ip_tables is there?
2013-11-28 10:27 /proc and/or /sys file to know if ip_tables is there? Tomasz Bursztyka
@ 2013-11-28 16:10 ` Phil Oester
2013-11-29 6:01 ` Tomasz Bursztyka
0 siblings, 1 reply; 3+ messages in thread
From: Phil Oester @ 2013-11-28 16:10 UTC (permalink / raw)
To: Tomasz Bursztyka; +Cc: netfilter-devel
On Thu, Nov 28, 2013 at 12:27:08PM +0200, Tomasz Bursztyka wrote:
> Hi,
>
> I need to know reliably at runtime whether or not ip_tables is
> either currently loaded as a module or built-in the kernel.
>
> Testing for /sys/module/ip_tables solves the first issue, but in
> case of built-in it's not usable.
>
> I could check for ip_tables_* symbols in /proc/kallsyms but I guess
> it's not a nice way.
>
> Any other proper way?
[ -f /proc/net/ip_tables_names ]
Although built in components will show up in /sys/module/ also.
Phil
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-11-29 6:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-28 10:27 /proc and/or /sys file to know if ip_tables is there? Tomasz Bursztyka
2013-11-28 16:10 ` Phil Oester
2013-11-29 6:01 ` Tomasz Bursztyka
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.