[CRIU] [PATCH 4/5] test/socket-tcp: run iptables with -w
Andrei Vagin
avagin at gmail.com
Tue Nov 27 20:45:44 MSK 2018
Start test
Test is SUID
./socket-tcp-nfconntrack --pidfile=socket-tcp-nfconntrack.pid --outfile=socket-tcp-nfconntrack.out
Another app is currently holding the xtables lock. Perhaps you want to use the -w option?
Signed-off-by: Andrei Vagin <avagin at gmail.com>
---
test/zdtm/static/socket-tcp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/zdtm/static/socket-tcp.c b/test/zdtm/static/socket-tcp.c
index 18eb3792c..5158fe348 100644
--- a/test/zdtm/static/socket-tcp.c
+++ b/test/zdtm/static/socket-tcp.c
@@ -76,7 +76,7 @@ int main(int argc, char **argv)
return 1;
if (system("iptables -w -A INPUT -i lo -p tcp -m state --state NEW,ESTABLISHED -j ACCEPT"))
return 1;
- if (system("iptables -A INPUT -j DROP"))
+ if (system("iptables -w -A INPUT -j DROP"))
return 1;
#endif
--
2.14.4
More information about the CRIU
mailing list