Drop privileges for udhcp

Steffen Nurpmeso steffen at sdaoden.eu
Wed Feb 23 20:19:13 UTC 2022


Bobby Mah wrote in
 <CALCTmMvnBJFaZ5_x9hAf72-roHPtX0Z67qrD=YxR+O2ez0zgeg at mail.gmail.com>:
 |Hello folks!
 |
 |I would like udhcp to use setuid so that it can drop privileges after the
 |server socket is built. However, the server socket is inside a loop and is
 |re-created every time there's a bad packet.
 |
 |I am proposing moving the server socket out of the loop and letting udhcp
 |die when a bad packet arrives. This way I can add the ability to drop the
 |privileges after the server socket is created.
 |
 |Is there a reason to continue re-creating the server socket after a bad
 |packet arrives? If not, then will the change I propose be deemed accepta\
 |ble?

Ah and if you only could do something against the sleeps.
That would be a miracle.

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)


More information about the busybox mailing list