[PATCH] Export PAM environment to shell

Ryan Phillips ryan at trolocsis.com
Wed Mar 30 23:00:17 UTC 2011


Denys Vlasenko <vda.linux at googlemail.com> said:
> On Tuesday 15 March 2011 16:28, Ryan Phillips wrote:
> > Hi!
> > 
> > Here is a patch to export the PAM environment to the shell. This patch is needed
> > for certain PAM modules that manipulate environment variables.
> 
> Since you only need to do it in login, can you put necessary
> code in login.c, instead of touching so many other files too?

Denys,

The function that is called is a shared API call to other applications. IIRC,
the modified function does a clearenv() so I believe this modification will need
an API change.

Regards,
Ryan


More information about the busybox mailing list