mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-01 14:55:39 +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:
@@ -76,7 +76,7 @@ int main(int argc, char **argv)
|
|||||||
return 1;
|
return 1;
|
||||||
if (system("iptables -w -A INPUT -i lo -p tcp -m state --state NEW,ESTABLISHED -j ACCEPT"))
|
if (system("iptables -w -A INPUT -i lo -p tcp -m state --state NEW,ESTABLISHED -j ACCEPT"))
|
||||||
return 1;
|
return 1;
|
||||||
if (system("iptables -A INPUT -j DROP"))
|
if (system("iptables -w -A INPUT -j DROP"))
|
||||||
return 1;
|
return 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user