[PATCH] Export PAM environment to shell
Ryan Phillips
ryan at trolocsis.com
Thu Mar 31 17:03:30 UTC 2011
Denys Vlasenko <vda.linux at googlemail.com> said:
> On Thu, Mar 31, 2011 at 1:00 AM, Ryan Phillips <ryan at trolocsis.com> wrote:
> > 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.
>
> I don't understand your explanation.
>
Ah, I see your point. Here is a revised patch.
Thanks,
Ryan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-pam-environment.diff
Type: text/x-diff
Size: 976 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20110331/3c71bcbf/attachment.bin>
More information about the busybox
mailing list