From: Philip Craig <philipc@snapgear.com>
To: gerd@egidy.de
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: condition and 2.6
Date: Mon, 01 Mar 2004 17:40:40 +1000 [thread overview]
Message-ID: <4042E8F8.5040702@snapgear.com> (raw)
In-Reply-To: <200402292314.03863.lists@egidy.de>
Gerd v. Egidy wrote:
> I think of a lockfile (e.g. /var/run/libiptc.pid) which is created by the
> library in iptc_init and removed in iptc_commit. This way all programs using
> libiptc become safe at once.
This is not good enough, since iptc_init and iptc_commit are per table.
You could fix that by adding iptc_lock and iptc_unlock functions to libiptc.
This would work for iptables-save/restore, but it will still not help if
you are using multiple iptables commands to modify your rules.
The lock operations really need to be around your entire script, which
means you can't implement them in libiptc or the iptables commands.
--
Philip Craig - SnapGear, A CyberGuard Company - http://www.SnapGear.com
prev parent reply other threads:[~2004-03-01 7:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-29 1:10 condition and 2.6 Gerd v. Egidy
2004-02-29 11:07 ` Harald Welte
2004-02-29 14:05 ` Willy Tarreau
2004-02-29 14:28 ` Gerd v. Egidy
2004-02-29 20:56 ` Harald Welte
2004-02-29 22:14 ` Gerd v. Egidy
2004-03-01 6:30 ` Henrik Nordstrom
2004-03-01 7:40 ` Philip Craig [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=4042E8F8.5040702@snapgear.com \
--to=philipc@snapgear.com \
--cc=gerd@egidy.de \
--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.