diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/zdtm/static/netns_sub.c | 4 | ||||
-rw-r--r-- | test/zdtm/static/netns_sub.desc | 6 | ||||
-rw-r--r-- | test/zdtm/static/netns_sub_veth.c | 2 | ||||
-rw-r--r-- | test/zdtm/static/netns_sub_veth.desc | 2 |
4 files changed, 12 insertions, 2 deletions
diff --git a/test/zdtm/static/netns_sub.c b/test/zdtm/static/netns_sub.c index 6515057d8..9f77bf96b 100644 --- a/test/zdtm/static/netns_sub.c +++ b/test/zdtm/static/netns_sub.c @@ -104,6 +104,8 @@ int main(int argc, char **argv) pr_perror("unshare"); return 1; } + if (system("ip link set up dev lo")) + return 1; sk = create_socket(1); if (sk < 0) return 1; @@ -166,6 +168,8 @@ int main(int argc, char **argv) pr_perror("unshare"); return 1; } + if (system("ip link set up dev lo")) + return 1; sk = create_socket(2); if (sk < 0) return 1; diff --git a/test/zdtm/static/netns_sub.desc b/test/zdtm/static/netns_sub.desc index 7657ba45c..1f12518d2 100644 --- a/test/zdtm/static/netns_sub.desc +++ b/test/zdtm/static/netns_sub.desc @@ -1 +1,5 @@ -{'flavor': 'ns uns', 'flags': 'suid'} +{ + 'deps': ['/bin/sh', '/sbin/ip|/bin/ip'], + 'flavor': 'ns uns', + 'flags': 'suid' +} diff --git a/test/zdtm/static/netns_sub_veth.c b/test/zdtm/static/netns_sub_veth.c index 927827199..eedbb15c3 100644 --- a/test/zdtm/static/netns_sub_veth.c +++ b/test/zdtm/static/netns_sub_veth.c @@ -50,6 +50,8 @@ int main(int argc, char **argv) if (unshare(CLONE_NEWNET)) return 1; + if (system("ip link set up dev lo")) + return 1; task_waiter_complete(&lock, i); test_waitsig(); diff --git a/test/zdtm/static/netns_sub_veth.desc b/test/zdtm/static/netns_sub_veth.desc index ea9e15c8a..18f81a880 100644 --- a/test/zdtm/static/netns_sub_veth.desc +++ b/test/zdtm/static/netns_sub_veth.desc @@ -1,5 +1,5 @@ { - 'deps': ['/sbin/ip', '/bin/sh'], + 'deps': ['/sbin/ip|/bin/ip', '/bin/sh'], 'flags': 'suid', 'flavor': 'ns uns', 'feature': 'link_nsid', |