Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

guest: allow unprivileged users to use ping #66

Merged
merged 1 commit into from
Sep 27, 2024

Commits on Sep 27, 2024

  1. 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 <slp@redhat.com>
    slp committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    3985b82 View commit details
    Browse the repository at this point in the history