[PATCH] sanitize when kernel starts init without any fd opened
Paul Fox
pgf at brightstareng.com
Wed Jun 13 13:04:16 UTC 2007
>
> > How to fix it in daemons and init. Example from login.c
>
> We may and should patch busybox code so it behaves correctly in the "no
> fd opened" case.
>
> But embedded systems (and moreover desktops) often run more than
> busybox. Should we impose patching all other code with something like
> bb_daemonize_or_rexec() ?
>
> I think it's against busybox purpose of reducing code size.
>
> Not to mention the difficulty for users of identifying the problem at
> first. Any bug caused by this vanishes when you foreground the daemon,
> run it from a shell instead of init, or even try to open a trace file to
> understand what's happening.
i agree. the current init behavior is clearly broken.
paul
=---------------------
paul fox, pgf at brightstareng.com
More information about the busybox
mailing list