zdtm: add nftables network namespace locking test

This is just a symlink to the original static/netns_lock test with
the right options passed to use nftables instead.

v2:
	- make static/netns_lock test iptables explicitly
	- prevent netns_lock tests from running in parallel because
	  netns & sync files creation were conflicting in both tests.

Signed-off-by: Zeyad Yasser <zeyady98@gmail.com>
This commit is contained in:
Zeyad Yasser 2021-07-09 18:30:50 +02:00 committed by Andrei Vagin
parent 19cc0bfa65
commit c15327656a
7 changed files with 13 additions and 3 deletions

View file

@ -217,7 +217,8 @@ TST_NOFILE := \
uffd-events \
thread_different_uid_gid \
pipe03 \
netns_lock \
netns_lock_iptables \
netns_lock_nftables \
netns_sub \
netns_sub_veth \
netns_sub_sysctl \

View file

@ -1,6 +1,6 @@
{
'flavor': 'h',
'flags': 'suid',
'opts': '--tcp-established',
'flags': 'suid excl',
'opts': '--tcp-established --network-lock iptables',
'ropts': '--join-ns net:/var/run/netns/criu-net-lock-test'
}

View file

@ -0,0 +1 @@
netns_lock_iptables.c

View file

@ -0,0 +1,7 @@
{
'flavor': 'h',
'flags': 'suid excl',
'feature': 'network_lock_nftables',
'opts': '--tcp-established --network-lock nftables',
'ropts': '--join-ns net:/var/run/netns/criu-net-lock-test'
}

View file

@ -0,0 +1 @@
netns_lock_iptables.hook