diff --git a/test/zdtm/lib/ns.c b/test/zdtm/lib/ns.c index 7c78e0ada7..cfd325440e 100644 --- a/test/zdtm/lib/ns.c +++ b/test/zdtm/lib/ns.c @@ -160,8 +160,8 @@ static int prepare_mntns(void) static int set_ping_group_range(void) { - // Allow GIDs 40000-50000 to open an unprivileged ICMP socket - if (sysctl_write_str("/proc/sys/net/ipv4/ping_group_range", "40000 50000")) { + // Allow GIDs 58467, 58468 to open an unprivileged ICMP socket + if (sysctl_write_str("/proc/sys/net/ipv4/ping_group_range", "58467 58468")) { fprintf(stderr, "sysctl_write_str() failed: %m\n"); return -1; } diff --git a/test/zdtm_ct.c b/test/zdtm_ct.c index 1fc3b2befe..8fc1f8fe72 100644 --- a/test/zdtm_ct.c +++ b/test/zdtm_ct.c @@ -140,8 +140,8 @@ int main(int argc, char **argv) if (!uid) { if (create_timens()) exit(1); - // Allow GIDs 40000-50000 to open an unprivileged ICMP socket - if (sysctl_write_str("/proc/sys/net/ipv4/ping_group_range", "40000 50000")) + // Allow GIDs 58467, 58468 to open an unprivileged ICMP socket + if (sysctl_write_str("/proc/sys/net/ipv4/ping_group_range", "58467 58468")) exit(1); if (mount(NULL, "/", NULL, MS_REC | MS_SLAVE, NULL)) { fprintf(stderr, "mount(/, S_REC | MS_SLAVE)): %m");