From: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
To: netfilter-devel@vger.kernel.org
Subject: /proc and/or /sys file to know if ip_tables is there?
Date: Thu, 28 Nov 2013 12:27:08 +0200 [thread overview]
Message-ID: <52971A7C.7000505@linux.intel.com> (raw)
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
next reply other threads:[~2013-11-28 10:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-28 10:27 Tomasz Bursztyka [this message]
2013-11-28 16:10 ` /proc and/or /sys file to know if ip_tables is there? Phil Oester
2013-11-29 6:01 ` Tomasz Bursztyka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52971A7C.7000505@linux.intel.com \
--to=tomasz.bursztyka@linux.intel.com \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.