Commit fb6ef35
guest: allow unprivileged users to use ping
By default, the kernel doesn't allow unprivileged users to create ICMP
Echo sockets, which can lead to confusing messages like this one:
$ ping 1.1.1.1
ping: socktype: SOCK_DGRAM
ping: socket: Address family not supported by protocol
Most distros adjust "ipv4/ping_group_range" to allow unprivileged users
to use "ping" without relying on setuid, so do the same for krun guests.
Signed-off-by: Sergio Lopez <[email protected]>1 parent 60f4e5f commit fb6ef35
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
13 | 25 | | |
14 | 26 | | |
15 | 27 | | |
| |||
0 commit comments