On Tue, Jun 03, 2014 at 09:19:09AM +0200, Lukas Slebodnik wrote: > On (03/06/14 09:06), Sumit Bose wrote: > >On Tue, Jun 03, 2014 at 08:15:36AM +0200, Lukas Slebodnik wrote: > >> On (02/06/14 23:19), Sumit Bose wrote: > >> >On Sat, May 31, 2014 at 04:59:44PM +0200, Lukas Slebodnik wrote: > >> >> ehlo, > >> >> > >> >> I think that the attached patches are self descriptive. > >> >> > >> >> LS > >> > > >> >Patches apply and build fine. I've run build on a few platforms without > >> >any issue, but I had none with openpam at hand. > >> > > >> >I only have one comment on the last patch. getlogin() is not thread safe > >> It is > >> https://github.com/freebsd/freebsd/blob/master/lib/libc/gen/getlogin.c > >> lines 72:82 > > > >There are locks, but the result is still in a static variable (line 59), > >i.e. in the admittedly rare case when two threads do authentication in > >parallel for different users one thread might override the result of the > >other. > > > > Attaching version withou getlogin. It will require more time to find proper > solution and I do not want to block other patches in this patchset.
ok, you have my ACK here. I just wonder if you want to add a replacement for pam_modutil_getlogin() which just returns NULL for the time being to make SSSD compile on FreeBSD? Since the return value is only used for log messages I think this will do no harm. bye, Sumit > > LS _______________________________________________ sssd-devel mailing list sssd-devel@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/sssd-devel