All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH iptables]: Support the iptables lock in ip[6]tables-restore
@ 2017-03-15 13:45 Lorenzo Colitti
  2017-03-15 13:45 ` [PATCH iptables 1/2] iptables: remove duplicated argument parsing code Lorenzo Colitti
  2017-03-15 13:45 ` [PATCH iptables 2/2] iptables-restore: support acquiring the lock Lorenzo Colitti
  0 siblings, 2 replies; 5+ messages in thread
From: Lorenzo Colitti @ 2017-03-15 13:45 UTC (permalink / raw)
  To: netfilter-devel; +Cc: pablo, jscherpelz, subashab, zlpnobody

This series adds support for -w and -W to ip[6]tables-restore,
which currently do not perform any locking.

The lock is not acquired on startup. Instead, it is acquired when
a new table handle is created (on encountering '*') and released
when the table is committed (COMMIT). This makes it possible to
keep long-running iptables-restore processes in the background
(for example, reading commands from a pipe opened by a system
management daemon) and simultaneously run iptables commands.
An example usage is Android's IptablesRestoreController.cpp.

The first patch factors out to common functions the code that
parses -w and -W, in order not to have to add more copies of it.
The second patch actually adds support to iptables-restore.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-03-16  7:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-15 13:45 [PATCH iptables]: Support the iptables lock in ip[6]tables-restore Lorenzo Colitti
2017-03-15 13:45 ` [PATCH iptables 1/2] iptables: remove duplicated argument parsing code Lorenzo Colitti
2017-03-15 23:49   ` Subash Abhinov Kasiviswanathan
2017-03-16  7:56     ` Lorenzo Colitti
2017-03-15 13:45 ` [PATCH iptables 2/2] iptables-restore: support acquiring the lock Lorenzo Colitti

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.