[Toybox] Question about ping.

stephen Turner stephen.n.turner at gmail.com
Mon Oct 13 12:08:02 PDT 2014


adding list.

On Mon, Oct 13, 2014 at 3:07 PM, stephen Turner <stephen.n.turner at gmail.com>
wrote:



> Could you make it a menu/config flag similarly to how mv and cp are
> added/removed?
>
> Stephen
>
> On Mon, Oct 13, 2014 at 2:50 PM, Rob Landley <rob at landley.net> wrote:
>
>> On 10/13/14 01:04, Рысь wrote:
>> >>> Will ping work when invoked by root or not in that case?
>> >>
>> >> The new way does not require ping to run as root.
>> ...
>> >>
>> >> The thing is, Linux added an API that lets you do the same thing
>> >> without
>> >> requiring root access to do so. Seems like an improvement, especially
>> >> since toybox isn't always installed with the suid bit set. (So you have
>> >> to run things _as_ root to use the stuff requiring root.)
>> >
>> > So toybox ping will work regardless of kernel version, even 2.6.1x?
>>
>> If I include the old codepath that _does_ require root, which wouldn't
>> be used on newer systems (which would use the newer codepath either
>> way), then it would support old 2.6 kernels from 4 years ago, yes.
>>
>> Whether or not I should bother doing that is the question I'm asking. It
>> would make the code bigger in order to support old kernels.
>>
>> There are two APIs. The question is, should I include _both_ APIs, or
>> just the newer one (which was introduced in linux 3.0).
>>
>> Rob
>> _______________________________________________
>> Toybox mailing list
>> Toybox at lists.landley.net
>> http://lists.landley.net/listinfo.cgi/toybox-landley.net
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20141013/2d53a80f/attachment-0001.htm>


More information about the Toybox mailing list