[PATCH 0/2] rootless ping support
Radoslav Kolev
radoslav.kolev at suse.com
Wed Aug 6 08:27:57 UTC 2025
Hello!
Please, when you have the time provide some feedback about this patchset
and if some changes are needed to be applied upstream:
https://lists.busybox.net/pipermail/busybox/2025-April/091431.html
Thank you!
On Tue, Apr 15, 2025 at 11:33 AM Radoslav Kolev <radoslav.kolev at suse.com>
wrote:
> For a long time Linux has supported using dgram sockets
> to avoid requiring root privileges or a setuid ping binary.
> This patch is inspired by a patch Alpine linux carries
> (
> https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/main/busybox/0015-ping-make-ping-work-without-root-privileges.patch
> )
> but with a number of improvements:
>
> * The rootless option is configurable, and disabled by default, so no
> concerns about size increase for those that don't want/need it
> * The original patch only works if the fancy output option is enabled
> * With fancy option enabled, it always returned 42 as the ttl value
> for ipv4
>
> I'm currently doing some more test, but so far it seems to work well
> for me. Any comments/suggestions/testing is welcome.
>
> Best regards,
> Radoslav
>
> Radoslav Kolev (2):
> Add optional rootless ping support
> Add using_dgram as member of globals struct
>
> networking/ping.c | 346 +++++++++++++++++++++++++++++++++-------------
> 1 file changed, 253 insertions(+), 93 deletions(-)
>
> --
> 2.47.1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20250806/5bbe63f3/attachment.htm>
More information about the busybox
mailing list