2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 01:51:51 +00:00

kerndat: run iptables with -n to not resolve service names

Resolving service names can be slow and it isn't needed here.

Fixes #2032

Signed-off-by: Andrei Vagin <avagin@google.com>
This commit is contained in:
Andrei Vagin 2025-02-20 04:31:12 +00:00 committed by Radostin Stoyanov
parent 48d0910a45
commit b0f0d0fa0e

View File

@ -646,7 +646,7 @@ static int kerndat_loginuid(void)
static int kerndat_iptables_has_xtlocks(void)
{
int fd;
char *argv[4] = { "sh", "-c", "iptables -w -L", NULL };
char *argv[4] = { "sh", "-c", "iptables -n -w -L", NULL };
fd = open("/dev/null", O_RDWR);
if (fd < 0) {