[RFC patch 0/2] nwfilter: don't query netfilter inside transactions

Nikolay Shirokovskiy posted 2 patches 2 years, 1 month ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20220302083456.100451-1-nshirokovskiy@virtuozzo.com
src/libvirt_private.syms                  |   1 +
src/nwfilter/nwfilter_ebiptables_driver.c | 154 +++++++++++-----------
src/util/virfirewall.c                    |   2 +-
src/util/virfirewall.h                    |   7 +
4 files changed, 84 insertions(+), 80 deletions(-)
[RFC patch 0/2] nwfilter: don't query netfilter inside transactions
Posted by Nikolay Shirokovskiy 2 years, 1 month ago
Hi, all.

In the process of fixing a corner case in nwfilter in case of libvirtd
crash I noticed the peculiar way it works for recursive removes/renames
of chains. So I proposing a change which is described in the second patch.

This is an RFC and as such is incomplete:
- only recursive removing is patched and renaming is not
- tests are not fixed

Nikolay Shirokovskiy (2):
  utils: make virFirewallAddRuleFullV public
  nwfilter: don't query netfilter inside transactions

 src/libvirt_private.syms                  |   1 +
 src/nwfilter/nwfilter_ebiptables_driver.c | 154 +++++++++++-----------
 src/util/virfirewall.c                    |   2 +-
 src/util/virfirewall.h                    |   7 +
 4 files changed, 84 insertions(+), 80 deletions(-)

-- 
2.31.1