udev and PATH problems
Denis Vlasenko
vda.linux at googlemail.com
Sat May 19 14:11:23 UTC 2007
On Friday 18 May 2007 10:00, Ignacio García Pérez wrote:
> Sorry to bring the topic again. Someone pointed out that udevd should be
> passing the environment variables it gets on startup to its spawned
> child processes, thus letting the use actually decide what should be and
> not be in the environment.
>
> I would like to point out that while revieving the udevd code I found
> out that udevd actively (by means of a call to clearenv) clears the
> environment variables of all forked processes, which of course includes
> all programs called via the "RUN" directive in the rules files.
>
> As I mentioned earlier, I solved the problem with a generic rule in a
> file named to be included before all others:
>
> ACTION=="*", ENV{PATH}="/sbin:/usr/sbin:/bin:/usr/bin"
>
> However, I still don't know why my FC6 setup does not include such a
> rule but still works fine (yes, the Red Hat patches don't remove the
> clearenv).
I sent a patch to udev people to preserve PATH. See attached.
Hopefully they can apply it.
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: udev_PATH.diff
Type: text/x-diff
Size: 1327 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070519/181f7e85/attachment-0002.bin
More information about the busybox
mailing list