Skip to content
Commit cde33dcb authored by Pavel Emelyanov's avatar Pavel Emelyanov
Browse files

empty-ns: Don't C/R iptables too (v2)

When C/R-ing a net namespace with --empty-ns net option we should also
skip netfilter rules too (as per https://github.com/docker/docker/issues/27597).

However, there's one thing to be handled -- local TCP blocking rules are
expected to be there on restore by restore_iptables() which is no longer
the case, so put them back manually.

Test included, checked on zdtm/static/socket-tcpbuf-local :)

v2: Full scripts for empty netns setup.

https://github.com/xemul/criu/issues/246


Signed-off-by: default avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 7251cb3a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment