All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Schaaf <bof@bof.de>
To: 24 <24@k0n.org>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: detecting if compiled or loaded modules
Date: Sun, 15 Dec 2002 13:30:38 +0100	[thread overview]
Message-ID: <20021215123038.GA22276@oknodo.bof.de> (raw)
In-Reply-To: <20021215133954.70ad328c.24@k0n.org>

>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?

      parent reply	other threads:[~2002-12-15 12:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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 message]

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=20021215123038.GA22276@oknodo.bof.de \
    --to=bof@bof.de \
    --cc=24@k0n.org \
    --cc=netfilter-devel@lists.netfilter.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.