FEATURE_PREFER_APPLETS should fail gracefully.

Rob Landley rob at landley.net
Wed Feb 2 03:34:55 UTC 2011


On 02/01/2011 08:32 PM, Denys Vlasenko wrote:
> On Tuesday 01 February 2011 19:00, Rob Landley wrote:
>> When /proc isn't mounted, the /proc/self/exe exec will fail.  In that
>> case, busybox should probably just fall back to the normal $PATH
>> behavior instead of failing.
> 
> Another option is to patch kernel so that exec("/proc/self/exe")
> never fails. See examples/linux-2.6.30_proc_self_exe.patch

Magic path bad.  Something like exec(NULL) would be better but it's too
close to a common error.  Perhaps exec(".") is a better special case.
(Although since you still support 2.4 module loading and such, for no
readily apparent reason, you'd still have to support old systems that
_do_ fail basically forever.)

However, "the kernel has no good way to re-exec yourself" and "nofork
metastasized" are separate issues.  Noexec != nofork.

Rob


More information about the busybox mailing list