2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

test/socket-tcp: run iptables with -w

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@gmail.com>
This commit is contained in:
Andrei Vagin
2018-11-27 20:45:44 +03:00
parent 81c113e325
commit bc522bcc94

View File

@@ -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