]> git.ipfire.org Git - thirdparty/iptables.git/commit
iptables-test.py: Try to unshare netns by default
authorPhil Sutter <phil@nwl.cc>
Tue, 17 Nov 2020 18:00:45 +0000 (19:00 +0100)
committerPhil Sutter <phil@nwl.cc>
Tue, 17 Nov 2020 19:04:01 +0000 (20:04 +0100)
commit21873c24159053ce0a6bbd7e93091ceb0b73f90b
treeae8c51f7a066763f22587fc8890e262c78ae205b
parent47251c8bda92b8f655453c52699454b739cc2231
iptables-test.py: Try to unshare netns by default

If user did not explicitly requst to "test netnamespace path", try an
import of 'unshare' module and call unshare() to avoid killing the local
host's network by accident.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables-test.py