aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/test/ping
Commit message (Collapse)AuthorAgeFilesLines
* executor: fix enabling of ICMP/ping socketsDmitry Vyukov2022-06-201-0/+2
net/ipv4/ping_group_range sysctl grants access to ICMP sockets to the specified user groups. But it needs to be set inside of the net namespace (it's per-namespace). We were setting it but in the init namespace only (which we don't use). Set it after CLONE_NEWNET. This repairs testing of ICMP sockets. Note: don't set it for setuid sandbox since it's "low privilege".