mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
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:
parent
19cc0bfa65
commit
c15327656a
7 changed files with 13 additions and 3 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
}
|
||||
1
test/zdtm/static/netns_lock_nftables.c
Symbolic link
1
test/zdtm/static/netns_lock_nftables.c
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
netns_lock_iptables.c
|
||||
7
test/zdtm/static/netns_lock_nftables.desc
Normal file
7
test/zdtm/static/netns_lock_nftables.desc
Normal 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'
|
||||
}
|
||||
1
test/zdtm/static/netns_lock_nftables.hook
Symbolic link
1
test/zdtm/static/netns_lock_nftables.hook
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
netns_lock_iptables.hook
|
||||
Loading…
Add table
Add a link
Reference in a new issue