mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
e66451f685
All the unit tests that use iptables/ip6tables/ebtables have been written to omit the locking/exclusive use primitive on the generated commandlines. Even though none of the tests actually execute those commands (and so it doesn't matter for purposes of the test whether or not the commands support these options), it still made sense when some systems had these locking options and some didn't. We are now at a point where every supported Linux distro has supported the locking options on these commands for quite a long time, and are going to make their use non-optional. As a first step, this patch uses the virFirewallSetLockOverride() function, which is called at the beginning of all firewall-related tests, to set all the bools controlling whether or not the locking options are used to true. This means that all the test cases must be updated to include the proper locking option in their commandlines. The change to make actual execs of the commands unconditionally use the locking option will be in an upcoming patch - this one affects only the unit tests. Signed-off-by: Laine Stump <laine@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
151 lines
2.0 KiB
Plaintext
151 lines
2.0 KiB
Plaintext
iptables \
|
|
-w \
|
|
--table filter \
|
|
--list-rules
|
|
iptables \
|
|
-w \
|
|
--table nat \
|
|
--list-rules
|
|
iptables \
|
|
-w \
|
|
--table mangle \
|
|
--list-rules
|
|
iptables \
|
|
-w \
|
|
--table filter \
|
|
--new-chain LIBVIRT_INP
|
|
iptables \
|
|
-w \
|
|
--table filter \
|
|
--insert INPUT \
|
|
--jump LIBVIRT_INP
|
|
iptables \
|
|
-w \
|
|
--table filter \
|
|
--new-chain LIBVIRT_OUT
|
|
iptables \
|
|
-w \
|
|
--table filter \
|
|
--insert OUTPUT \
|
|
--jump LIBVIRT_OUT
|
|
iptables \
|
|
-w \
|
|
--table filter \
|
|
--new-chain LIBVIRT_FWO
|
|
iptables \
|
|
-w \
|
|
--table filter \
|
|
--insert FORWARD \
|
|
--jump LIBVIRT_FWO
|
|
iptables \
|
|
-w \
|
|
--table filter \
|
|
--new-chain LIBVIRT_FWI
|
|
iptables \
|
|
-w \
|
|
--table filter \
|
|
--insert FORWARD \
|
|
--jump LIBVIRT_FWI
|
|
iptables \
|
|
-w \
|
|
--table filter \
|
|
--new-chain LIBVIRT_FWX
|
|
iptables \
|
|
-w \
|
|
--table filter \
|
|
--insert FORWARD \
|
|
--jump LIBVIRT_FWX
|
|
iptables \
|
|
-w \
|
|
--table nat \
|
|
--new-chain LIBVIRT_PRT
|
|
iptables \
|
|
-w \
|
|
--table nat \
|
|
--insert POSTROUTING \
|
|
--jump LIBVIRT_PRT
|
|
iptables \
|
|
-w \
|
|
--table mangle \
|
|
--new-chain LIBVIRT_PRT
|
|
iptables \
|
|
-w \
|
|
--table mangle \
|
|
--insert POSTROUTING \
|
|
--jump LIBVIRT_PRT
|
|
ip6tables \
|
|
-w \
|
|
--table filter \
|
|
--list-rules
|
|
ip6tables \
|
|
-w \
|
|
--table nat \
|
|
--list-rules
|
|
ip6tables \
|
|
-w \
|
|
--table mangle \
|
|
--list-rules
|
|
ip6tables \
|
|
-w \
|
|
--table filter \
|
|
--new-chain LIBVIRT_INP
|
|
ip6tables \
|
|
-w \
|
|
--table filter \
|
|
--insert INPUT \
|
|
--jump LIBVIRT_INP
|
|
ip6tables \
|
|
-w \
|
|
--table filter \
|
|
--new-chain LIBVIRT_OUT
|
|
ip6tables \
|
|
-w \
|
|
--table filter \
|
|
--insert OUTPUT \
|
|
--jump LIBVIRT_OUT
|
|
ip6tables \
|
|
-w \
|
|
--table filter \
|
|
--new-chain LIBVIRT_FWO
|
|
ip6tables \
|
|
-w \
|
|
--table filter \
|
|
--insert FORWARD \
|
|
--jump LIBVIRT_FWO
|
|
ip6tables \
|
|
-w \
|
|
--table filter \
|
|
--new-chain LIBVIRT_FWI
|
|
ip6tables \
|
|
-w \
|
|
--table filter \
|
|
--insert FORWARD \
|
|
--jump LIBVIRT_FWI
|
|
ip6tables \
|
|
-w \
|
|
--table filter \
|
|
--new-chain LIBVIRT_FWX
|
|
ip6tables \
|
|
-w \
|
|
--table filter \
|
|
--insert FORWARD \
|
|
--jump LIBVIRT_FWX
|
|
ip6tables \
|
|
-w \
|
|
--table nat \
|
|
--new-chain LIBVIRT_PRT
|
|
ip6tables \
|
|
-w \
|
|
--table nat \
|
|
--insert POSTROUTING \
|
|
--jump LIBVIRT_PRT
|
|
ip6tables \
|
|
-w \
|
|
--table mangle \
|
|
--new-chain LIBVIRT_PRT
|
|
ip6tables \
|
|
-w \
|
|
--table mangle \
|
|
--insert POSTROUTING \
|
|
--jump LIBVIRT_PRT
|