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

Conversation

slp
Copy link
Collaborator

@slp slp commented Sep 27, 2024

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.

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>
Copy link
Member

@alyssarosenzweig alyssarosenzweig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice little QoL improvement

@alyssarosenzweig alyssarosenzweig merged commit fb6ef35 into AsahiLinux:main Sep 27, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants